@@ -669,12 +669,7 @@ pub fn declare_tydesc(ccx: @CrateContext, t: ty::t) -> @mut tydesc_info {
669
669
let llsize = llsize_of ( ccx, llty) ;
670
670
let llalign = llalign_of ( ccx, llty) ;
671
671
let addrspace = declare_tydesc_addrspace ( ccx, t) ;
672
- // FIXME #6574: this triggers duplicate LLVM symbols
673
- let name = @( if false /*ccx.sess.opts.debuginfo*/ {
674
- mangle_internal_name_by_type_only ( ccx, t, "tydesc" )
675
- } else {
676
- mangle_internal_name_by_seq ( ccx, "tydesc" )
677
- } ) ;
672
+ let name = @mangle_internal_name_by_type_and_seq ( ccx, t, "tydesc" ) ;
678
673
note_unique_llvm_symbol ( ccx, name) ;
679
674
debug ! ( "+++ declare_tydesc %s %s" , ppaux:: ty_to_str( ccx. tcx, t) , * name) ;
680
675
let gvar = str:: as_c_str ( * name, |buf| {
@@ -703,12 +698,7 @@ pub fn declare_generic_glue(ccx: @CrateContext, t: ty::t, llfnty: TypeRef,
703
698
name : ~str ) -> ValueRef {
704
699
let _icx = ccx. insn_ctxt ( "declare_generic_glue" ) ;
705
700
let name = name;
706
- // FIXME #6574 this triggers duplicate LLVM symbols
707
- let fn_nm = @( if false /*ccx.sess.opts.debuginfo*/ {
708
- mangle_internal_name_by_type_only ( ccx, t, ( ~"glue_" + name) )
709
- } else {
710
- mangle_internal_name_by_seq ( ccx, ( ~"glue_" + name) )
711
- } ) ;
701
+ let fn_nm = @mangle_internal_name_by_type_and_seq ( ccx, t, ( ~"glue_" + name) ) ;
712
702
debug ! ( "%s is for type %s" , * fn_nm, ppaux:: ty_to_str( ccx. tcx, t) ) ;
713
703
note_unique_llvm_symbol ( ccx, fn_nm) ;
714
704
let llfn = decl_cdecl_fn ( ccx. llmod , * fn_nm, llfnty) ;
0 commit comments