@@ -471,14 +471,14 @@ pub fn declare_tydesc(ccx: &CrateContext, t: ty::t) -> @tydesc_info {
471
471
472
472
let llsize = llsize_of ( ccx, llty) ;
473
473
let llalign = llalign_of ( ccx, llty) ;
474
- let name = mangle_internal_name_by_type_and_seq ( ccx, t, "tydesc" ) . to_managed ( ) ;
475
- note_unique_llvm_symbol ( ccx, name) ;
474
+ let name = mangle_internal_name_by_type_and_seq ( ccx, t, "tydesc" ) ;
476
475
debug ! ( "+++ declare_tydesc {} {}" , ppaux:: ty_to_str( ccx. tcx, t) , name) ;
477
476
let gvar = name. with_c_str ( |buf| {
478
477
unsafe {
479
478
llvm:: LLVMAddGlobal ( ccx. llmod , ccx. tydesc_type . to_ref ( ) , buf)
480
479
}
481
480
} ) ;
481
+ note_unique_llvm_symbol ( ccx, name) ;
482
482
483
483
let ty_name = token:: intern_and_get_ident ( ppaux:: ty_to_str ( ccx. tcx , t) ) ;
484
484
let ty_name = C_str_slice ( ccx, ty_name) ;
@@ -499,10 +499,10 @@ pub fn declare_tydesc(ccx: &CrateContext, t: ty::t) -> @tydesc_info {
499
499
fn declare_generic_glue ( ccx : & CrateContext , t : ty:: t , llfnty : Type ,
500
500
name : & str ) -> ValueRef {
501
501
let _icx = push_ctxt ( "declare_generic_glue" ) ;
502
- let fn_nm = mangle_internal_name_by_type_and_seq ( ccx, t, ( ~"glue_" + name) ) . to_managed ( ) ;
502
+ let fn_nm = mangle_internal_name_by_type_and_seq ( ccx, t, ~"glue_" + name) ;
503
503
debug ! ( "{} is for type {}" , fn_nm, ppaux:: ty_to_str( ccx. tcx, t) ) ;
504
- note_unique_llvm_symbol ( ccx, fn_nm) ;
505
504
let llfn = decl_cdecl_fn ( ccx. llmod , fn_nm, llfnty, ty:: mk_nil ( ) ) ;
505
+ note_unique_llvm_symbol ( ccx, fn_nm) ;
506
506
return llfn;
507
507
}
508
508
0 commit comments