@@ -4889,7 +4889,6 @@ fn new_block_ctxt(cx: &@fn_ctxt, parent: &block_parent, kind: block_kind,
4889
4889
let llbb: BasicBlockRef = llvm:: LLVMAppendBasicBlock ( cx. llfn , s) ;
4890
4890
ret @{ llbb : llbb,
4891
4891
mutable terminated : false ,
4892
- build : bld:: BuilderRef_res ( bld:: mk_builder ( llbb) ) ,
4893
4892
parent : parent,
4894
4893
kind : kind,
4895
4894
mutable cleanups : [ ] ,
@@ -4925,7 +4924,6 @@ fn new_sub_block_ctxt(bcx: &@block_ctxt, n: &str) -> @block_ctxt {
4925
4924
fn new_raw_block_ctxt ( fcx : & @fn_ctxt , llbb : BasicBlockRef ) -> @block_ctxt {
4926
4925
ret @{ llbb : llbb,
4927
4926
mutable terminated : false ,
4928
- build : bld:: BuilderRef_res ( bld:: mk_builder ( llbb) ) ,
4929
4927
parent : parent_none,
4930
4928
kind : NON_SCOPE_BLOCK ,
4931
4929
mutable cleanups : [ ] ,
@@ -4992,7 +4990,6 @@ iter block_locals(b: &ast::blk) -> @ast::local {
4992
4990
fn llstaticallocas_block_ctxt( fcx: & @fn_ctxt) -> @block_ctxt {
4993
4991
ret @{ llbb : fcx. llstaticallocas ,
4994
4992
mutable terminated : false ,
4995
- build : bld:: BuilderRef_res ( bld:: mk_builder ( fcx. llstaticallocas ) ) ,
4996
4993
parent : parent_none,
4997
4994
kind : SCOPE_BLOCK ,
4998
4995
mutable cleanups : [ ] ,
@@ -5003,7 +5000,6 @@ fn llstaticallocas_block_ctxt(fcx: &@fn_ctxt) -> @block_ctxt {
5003
5000
fn llderivedtydescs_block_ctxt ( fcx : & @fn_ctxt ) -> @block_ctxt {
5004
5001
ret @{ llbb : fcx. llderivedtydescs ,
5005
5002
mutable terminated : false ,
5006
- build : bld:: BuilderRef_res ( bld:: mk_builder ( fcx. llderivedtydescs ) ) ,
5007
5003
parent : parent_none,
5008
5004
kind : SCOPE_BLOCK ,
5009
5005
mutable cleanups : [ ] ,
@@ -6210,15 +6206,6 @@ fn decl_no_op_type_glue(llmod: ModuleRef, taskptr_type: TypeRef) -> ValueRef {
6210
6206
ret decl_fastcall_fn ( llmod, abi:: no_op_type_glue_name ( ) , ty) ;
6211
6207
}
6212
6208
6213
- fn make_no_op_type_glue ( fun : ValueRef ) {
6214
- let bb_name = str:: buf ( "_rust_no_op_type_glue_bb" ) ;
6215
- let llbb = llvm:: LLVMAppendBasicBlock ( fun, bb_name) ;
6216
- let llbuild = llvm:: LLVMCreateBuilder ( ) ;
6217
- llvm:: LLVMPositionBuilderAtEnd ( llbuild, llbb) ;
6218
- llvm:: LLVMBuildRetVoid ( llbuild) ;
6219
- llvm:: LLVMDisposeBuilder ( llbuild) ;
6220
- }
6221
-
6222
6209
fn vec_fill ( bcx : & @block_ctxt , v : ValueRef ) -> ValueRef {
6223
6210
ret bld:: Load ( bcx, bld:: GEP ( bcx, v,
6224
6211
[ C_int ( 0 ) , C_int ( abi:: vec_elt_fill) ] ) ) ;
@@ -6397,6 +6384,7 @@ fn trans_crate(sess: &session::session, crate: &@ast::crate, tcx: &ty::ctxt,
6397
6384
rust_object_type: T_rust_object ( ) ,
6398
6385
tydesc_type: tydesc_type,
6399
6386
task_type: task_type,
6387
+ builder: BuilderRef_res ( llvm:: LLVMCreateBuilder ( ) ) ,
6400
6388
shape_cx: shape:: mk_ctxt ( llmod) ,
6401
6389
gc_cx: gc:: mk_ctxt ( ) } ;
6402
6390
let cx = new_local_ctxt ( ccx) ;
0 commit comments