Skip to content

Commit

Permalink
Cleanup unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Afonso Bordado <[email protected]>
  • Loading branch information
afonso360 committed Jul 27, 2023
1 parent 33ef508 commit f14706c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/cranelift.rs
Original file line number Diff line number Diff line change
Expand Up @@ -930,15 +930,6 @@ impl CraneliftCompiler {
let ret = bcx.use_var(self.registers[0]);
bcx.ins().return_(&[ret]);
self.filled_blocks.insert(bcx.current_block().unwrap());

// // If we have multiple consecutive exit instructions we need to switch blocks.
// let (fallthrough, target) = self.insn_targets[&(insn_ptr as u32)];
// let next_pc = (insn_ptr + 1) as u32;
// let next_block = *self
// .insn_blocks
// .entry(next_pc)
// .or_insert_with(|| bcx.create_block());
// self.insn_blocks.insert(next_pc, next_block);
}
_ => unimplemented!("inst: {:?}", insn),
}
Expand Down

0 comments on commit f14706c

Please sign in to comment.