@@ -6044,35 +6044,6 @@ fn decl_no_op_type_glue(llmod: ModuleRef, taskptr_type: TypeRef) -> ValueRef {
6044
6044
ret decl_cdecl_fn ( llmod, abi:: no_op_type_glue_name ( ) , ty) ;
6045
6045
}
6046
6046
6047
- fn make_glues ( llmod : ModuleRef , taskptr_type : TypeRef ) -> @glue_fns {
6048
- ret @{ no_op_type_glue : decl_no_op_type_glue ( llmod, taskptr_type) } ;
6049
- }
6050
-
6051
- fn make_common_glue ( sess : session:: session , output : str ) {
6052
- // FIXME: part of this is repetitive and is probably a good idea
6053
- // to autogen it.
6054
- let task_type = T_task ( ) ;
6055
- let taskptr_type = T_ptr ( task_type) ;
6056
-
6057
- let llmod = str:: as_buf ( "rust_out" , { |buf|
6058
- llvm:: LLVMModuleCreateWithNameInContext
6059
- ( buf, llvm:: LLVMGetGlobalContext ( ) )
6060
- } ) ;
6061
- let _: ( ) =
6062
- str:: as_buf ( x86:: get_data_layout ( ) ,
6063
- { |buf| llvm:: LLVMSetDataLayout ( llmod, buf) } ) ;
6064
- let _: ( ) =
6065
- str:: as_buf ( x86:: get_target_triple ( ) ,
6066
- { |buf| llvm:: LLVMSetTarget ( llmod, buf) } ) ;
6067
- mk_target_data ( x86:: get_data_layout ( ) ) ;
6068
- declare_intrinsics ( llmod) ;
6069
- let _: ( ) =
6070
- str:: as_buf ( x86:: get_module_asm ( ) ,
6071
- { |buf| llvm:: LLVMSetModuleInlineAsm ( llmod, buf) } ) ;
6072
- make_glues ( llmod, taskptr_type) ;
6073
- link:: write:: run_passes ( sess, llmod, output) ;
6074
- }
6075
-
6076
6047
fn create_module_map ( ccx : @crate_ctxt ) -> ValueRef {
6077
6048
let elttype = T_struct ( [ T_int ( ) , T_int ( ) ] ) ;
6078
6049
let maptype = T_array ( elttype, ccx. module_data . size ( ) + 1 u) ;
@@ -6183,7 +6154,6 @@ fn trans_crate(sess: session::session, crate: @ast::crate, tcx: ty::ctxt,
6183
6154
tn. associate ( "taskptr" , taskptr_type) ;
6184
6155
let tydesc_type = T_tydesc ( taskptr_type) ;
6185
6156
tn. associate ( "tydesc" , tydesc_type) ;
6186
- let glues = make_glues ( llmod, taskptr_type) ;
6187
6157
let hasher = ty:: hash_ty;
6188
6158
let eqer = ty:: eq_ty;
6189
6159
let tag_sizes = map:: mk_hashmap :: < ty:: t , uint > ( hasher, eqer) ;
@@ -6212,7 +6182,6 @@ fn trans_crate(sess: session::session, crate: @ast::crate, tcx: ty::ctxt,
6212
6182
tydescs: tydescs,
6213
6183
module_data: new_str_hash :: < ValueRef > ( ) ,
6214
6184
lltypes: lltypes,
6215
- glues: glues,
6216
6185
names: namegen ( 0 ) ,
6217
6186
sha: sha,
6218
6187
type_sha1s: sha1s,
0 commit comments