Skip to content

Commit 1d4579d

Browse files
committed
---
yaml --- r: 4912 b: refs/heads/master c: 15b540d h: refs/heads/master v: v3
1 parent 86e74db commit 1d4579d

File tree

4 files changed

+272
-114
lines changed

4 files changed

+272
-114
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b9112525ba27d46e056dcab303c27bb43073c4fc
2+
refs/heads/master: 15b540ded492c1e3d707d6e8472be0d87592979d

trunk/src/comp/middle/trans.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4889,7 +4889,6 @@ fn new_block_ctxt(cx: &@fn_ctxt, parent: &block_parent, kind: block_kind,
48894889
let llbb: BasicBlockRef = llvm::LLVMAppendBasicBlock(cx.llfn, s);
48904890
ret @{llbb: llbb,
48914891
mutable terminated: false,
4892-
build: bld::BuilderRef_res(bld::mk_builder(llbb)),
48934892
parent: parent,
48944893
kind: kind,
48954894
mutable cleanups: [],
@@ -4925,7 +4924,6 @@ fn new_sub_block_ctxt(bcx: &@block_ctxt, n: &str) -> @block_ctxt {
49254924
fn new_raw_block_ctxt(fcx: &@fn_ctxt, llbb: BasicBlockRef) -> @block_ctxt {
49264925
ret @{llbb: llbb,
49274926
mutable terminated: false,
4928-
build: bld::BuilderRef_res(bld::mk_builder(llbb)),
49294927
parent: parent_none,
49304928
kind: NON_SCOPE_BLOCK,
49314929
mutable cleanups: [],
@@ -4992,7 +4990,6 @@ iter block_locals(b: &ast::blk) -> @ast::local {
49924990
fn llstaticallocas_block_ctxt(fcx: &@fn_ctxt) -> @block_ctxt {
49934991
ret @{llbb: fcx.llstaticallocas,
49944992
mutable terminated: false,
4995-
build: bld::BuilderRef_res(bld::mk_builder(fcx.llstaticallocas)),
49964993
parent: parent_none,
49974994
kind: SCOPE_BLOCK,
49984995
mutable cleanups: [],
@@ -5003,7 +5000,6 @@ fn llstaticallocas_block_ctxt(fcx: &@fn_ctxt) -> @block_ctxt {
50035000
fn llderivedtydescs_block_ctxt(fcx: &@fn_ctxt) -> @block_ctxt {
50045001
ret @{llbb: fcx.llderivedtydescs,
50055002
mutable terminated: false,
5006-
build: bld::BuilderRef_res(bld::mk_builder(fcx.llderivedtydescs)),
50075003
parent: parent_none,
50085004
kind: SCOPE_BLOCK,
50095005
mutable cleanups: [],
@@ -6210,15 +6206,6 @@ fn decl_no_op_type_glue(llmod: ModuleRef, taskptr_type: TypeRef) -> ValueRef {
62106206
ret decl_fastcall_fn(llmod, abi::no_op_type_glue_name(), ty);
62116207
}
62126208

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-
62226209
fn vec_fill(bcx: &@block_ctxt, v: ValueRef) -> ValueRef {
62236210
ret bld::Load(bcx, bld::GEP(bcx, v,
62246211
[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,
63976384
rust_object_type: T_rust_object(),
63986385
tydesc_type: tydesc_type,
63996386
task_type: task_type,
6387+
builder: BuilderRef_res(llvm::LLVMCreateBuilder()),
64006388
shape_cx: shape::mk_ctxt(llmod),
64016389
gc_cx: gc::mk_ctxt()};
64026390
let cx = new_local_ctxt(ccx);

0 commit comments

Comments
 (0)