rustc_codegen_ssa: only create backend BasicBlock
s as-needed.
This commit is contained in:
parent
7dc9ff5c62
commit
402e9efc56
7 changed files with 50 additions and 51 deletions
|
@ -1148,10 +1148,6 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
|
|||
self.cx
|
||||
}
|
||||
|
||||
unsafe fn delete_basic_block(&mut self, bb: &'ll BasicBlock) {
|
||||
llvm::LLVMDeleteBasicBlock(bb);
|
||||
}
|
||||
|
||||
fn do_not_inline(&mut self, llret: &'ll Value) {
|
||||
llvm::Attribute::NoInline.apply_callsite(llvm::AttributePlace::Function, llret);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue