Replace obj dtors with resources in stdlib and rustc
This commit is contained in:
parent
ae46c154f0
commit
30d2e358be
7 changed files with 82 additions and 69 deletions
|
|
@ -41,6 +41,7 @@ import std::map::new_str_hash;
|
|||
import syntax::codemap::span;
|
||||
import lib::llvm::llvm;
|
||||
import lib::llvm::builder;
|
||||
import lib::llvm::new_builder;
|
||||
import lib::llvm::target_data;
|
||||
import lib::llvm::type_names;
|
||||
import lib::llvm::mk_target_data;
|
||||
|
|
@ -5934,13 +5935,6 @@ fn trans_stmt(cx: &@block_ctxt, s: &ast::stmt) -> result {
|
|||
ret rslt(bcx, C_nil());
|
||||
}
|
||||
|
||||
fn new_builder(llbb: BasicBlockRef) -> builder {
|
||||
let llbuild: BuilderRef = llvm::LLVMCreateBuilder();
|
||||
llvm::LLVMPositionBuilderAtEnd(llbuild, llbb);
|
||||
ret builder(llbuild, @mutable false);
|
||||
}
|
||||
|
||||
|
||||
// You probably don't want to use this one. See the
|
||||
// next three functions instead.
|
||||
fn new_block_ctxt(cx: &@fn_ctxt, parent: &block_parent, kind: block_kind,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue