Introduce Bx::switch_to_block
This commit is contained in:
parent
0edcf1e249
commit
96cf7999ab
6 changed files with 95 additions and 94 deletions
|
@ -166,6 +166,10 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
|
|||
Self::append_block(self.cx, self.llfn(), name)
|
||||
}
|
||||
|
||||
fn switch_to_block(&mut self, llbb: Self::BasicBlock) {
|
||||
*self = Self::build(self.cx, llbb)
|
||||
}
|
||||
|
||||
fn ret_void(&mut self) {
|
||||
unsafe {
|
||||
llvm::LLVMBuildRetVoid(self.llbuilder);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue