Skip to content

Commit 8761b1f

Browse files
committed
auto merge of #7067 : brson/rust/notasktrans, r=graydon
2 parents e06579b + 48c7bc1 commit 8761b1f

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

src/librustc/middle/trans/base.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3074,9 +3074,6 @@ pub fn trans_crate(sess: session::Session,
30743074
}
30753075
let int_type = T_int(targ_cfg);
30763076
let float_type = T_float(targ_cfg);
3077-
let task_type = T_task(targ_cfg);
3078-
let taskptr_type = T_ptr(task_type);
3079-
lib::llvm::associate_type(tn, @"taskptr", taskptr_type);
30803077
let tydesc_type = T_tydesc(targ_cfg);
30813078
lib::llvm::associate_type(tn, @"tydesc", tydesc_type);
30823079
let crate_map = decl_crate_map(sess, link_meta, llmod);
@@ -3142,7 +3139,6 @@ pub fn trans_crate(sess: session::Session,
31423139
tydesc_type: tydesc_type,
31433140
int_type: int_type,
31443141
float_type: float_type,
3145-
task_type: task_type,
31463142
opaque_vec_type: T_opaque_vec(targ_cfg),
31473143
builder: BuilderRef_res(unsafe {
31483144
llvm::LLVMCreateBuilderInContext(llcx)

src/librustc/middle/trans/common.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ pub struct CrateContext {
223223
tydesc_type: TypeRef,
224224
int_type: TypeRef,
225225
float_type: TypeRef,
226-
task_type: TypeRef,
227226
opaque_vec_type: TypeRef,
228227
builder: BuilderRef_res,
229228
shape_cx: shape::Ctxt,
@@ -952,28 +951,6 @@ pub fn T_empty_struct() -> TypeRef { return T_struct([], false); }
952951
// they are described by this opaque type.
953952
pub fn T_vtable() -> TypeRef { T_array(T_ptr(T_i8()), 1u) }
954953

955-
pub fn T_task(targ_cfg: @session::config) -> TypeRef {
956-
let t = T_named_struct("task");
957-
958-
// Refcount
959-
// Delegate pointer
960-
// Stack segment pointer
961-
// Runtime SP
962-
// Rust SP
963-
// GC chain
964-
965-
966-
// Domain pointer
967-
// Crate cache pointer
968-
969-
let t_int = T_int(targ_cfg);
970-
let elems =
971-
~[t_int, t_int, t_int, t_int,
972-
t_int, t_int, t_int, t_int];
973-
set_struct_body(t, elems, false);
974-
return t;
975-
}
976-
977954
pub fn T_tydesc_field(cx: @CrateContext, field: uint) -> TypeRef {
978955
// Bit of a kludge: pick the fn typeref out of the tydesc..
979956

@@ -1103,8 +1080,6 @@ pub fn T_chan(cx: @CrateContext, _t: TypeRef) -> TypeRef {
11031080

11041081
}
11051082

1106-
pub fn T_taskptr(cx: @CrateContext) -> TypeRef { return T_ptr(cx.task_type); }
1107-
11081083

11091084
pub fn T_opaque_cbox_ptr(cx: @CrateContext) -> TypeRef {
11101085
// closures look like boxes (even when they are ~fn or &fn)

0 commit comments

Comments
 (0)