about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-11 19:37:39 -0700
committerbors <bors@rust-lang.org>2013-06-11 19:37:39 -0700
commit8761b1fb16c8d1e7e57a95efdb2cdcf36565477a (patch)
treefc944df8f911d437591d8fd05354e1c252eecf5b /src
parente06579bc0935ed1dcbddef41bc1b6a8850a2059c (diff)
parent48c7bc17c68032d142dd6ce53b8f5933d52c2165 (diff)
downloadrust-8761b1fb16c8d1e7e57a95efdb2cdcf36565477a.tar.gz
rust-8761b1fb16c8d1e7e57a95efdb2cdcf36565477a.zip
auto merge of #7067 : brson/rust/notasktrans, r=graydon
Diffstat (limited to 'src')
-rw-r--r--src/librustc/middle/trans/base.rs4
-rw-r--r--src/librustc/middle/trans/common.rs25
2 files changed, 0 insertions, 29 deletions
diff --git a/src/librustc/middle/trans/base.rs b/src/librustc/middle/trans/base.rs
index f47775f0700..8db838c5d31 100644
--- a/src/librustc/middle/trans/base.rs
+++ b/src/librustc/middle/trans/base.rs
@@ -3074,9 +3074,6 @@ pub fn trans_crate(sess: session::Session,
         }
         let int_type = T_int(targ_cfg);
         let float_type = T_float(targ_cfg);
-        let task_type = T_task(targ_cfg);
-        let taskptr_type = T_ptr(task_type);
-        lib::llvm::associate_type(tn, @"taskptr", taskptr_type);
         let tydesc_type = T_tydesc(targ_cfg);
         lib::llvm::associate_type(tn, @"tydesc", tydesc_type);
         let crate_map = decl_crate_map(sess, link_meta, llmod);
@@ -3142,7 +3139,6 @@ pub fn trans_crate(sess: session::Session,
               tydesc_type: tydesc_type,
               int_type: int_type,
               float_type: float_type,
-              task_type: task_type,
               opaque_vec_type: T_opaque_vec(targ_cfg),
               builder: BuilderRef_res(unsafe {
                   llvm::LLVMCreateBuilderInContext(llcx)
diff --git a/src/librustc/middle/trans/common.rs b/src/librustc/middle/trans/common.rs
index 1f0746a8170..6150364e552 100644
--- a/src/librustc/middle/trans/common.rs
+++ b/src/librustc/middle/trans/common.rs
@@ -223,7 +223,6 @@ pub struct CrateContext {
      tydesc_type: TypeRef,
      int_type: TypeRef,
      float_type: TypeRef,
-     task_type: TypeRef,
      opaque_vec_type: TypeRef,
      builder: BuilderRef_res,
      shape_cx: shape::Ctxt,
@@ -952,28 +951,6 @@ pub fn T_empty_struct() -> TypeRef { return T_struct([], false); }
 // they are described by this opaque type.
 pub fn T_vtable() -> TypeRef { T_array(T_ptr(T_i8()), 1u) }
 
-pub fn T_task(targ_cfg: @session::config) -> TypeRef {
-    let t = T_named_struct("task");
-
-    // Refcount
-    // Delegate pointer
-    // Stack segment pointer
-    // Runtime SP
-    // Rust SP
-    // GC chain
-
-
-    // Domain pointer
-    // Crate cache pointer
-
-    let t_int = T_int(targ_cfg);
-    let elems =
-        ~[t_int, t_int, t_int, t_int,
-         t_int, t_int, t_int, t_int];
-    set_struct_body(t, elems, false);
-    return t;
-}
-
 pub fn T_tydesc_field(cx: @CrateContext, field: uint) -> TypeRef {
     // Bit of a kludge: pick the fn typeref out of the tydesc..
 
@@ -1103,8 +1080,6 @@ pub fn T_chan(cx: @CrateContext, _t: TypeRef) -> TypeRef {
 
 }
 
-pub fn T_taskptr(cx: @CrateContext) -> TypeRef { return T_ptr(cx.task_type); }
-
 
 pub fn T_opaque_cbox_ptr(cx: @CrateContext) -> TypeRef {
     // closures look like boxes (even when they are ~fn or &fn)