@@ -683,12 +683,7 @@ pub fn declare_tydesc(ccx: @CrateContext, t: ty::t) -> @mut tydesc_info {
683
683
let llsize = llsize_of ( ccx, llty) ;
684
684
let llalign = llalign_of ( ccx, llty) ;
685
685
let addrspace = declare_tydesc_addrspace ( ccx, t) ;
686
- // FIXME #6574: this triggers duplicate LLVM symbols
687
- let name = @( if false /*ccx.sess.opts.debuginfo*/ {
688
- mangle_internal_name_by_type_only ( ccx, t, "tydesc" )
689
- } else {
690
- mangle_internal_name_by_seq ( ccx, "tydesc" )
691
- } ) ;
686
+ let name = @mangle_internal_name_by_type_and_seq ( ccx, t, "tydesc" ) ;
692
687
note_unique_llvm_symbol ( ccx, name) ;
693
688
debug ! ( "+++ declare_tydesc %s %s" , ppaux:: ty_to_str( ccx. tcx, t) , * name) ;
694
689
let gvar = str:: as_c_str ( * name, |buf| {
@@ -717,12 +712,7 @@ pub fn declare_generic_glue(ccx: @CrateContext, t: ty::t, llfnty: TypeRef,
717
712
name : ~str ) -> ValueRef {
718
713
let _icx = ccx. insn_ctxt ( "declare_generic_glue" ) ;
719
714
let name = name;
720
- // FIXME #6574 this triggers duplicate LLVM symbols
721
- let fn_nm = @( if false /*ccx.sess.opts.debuginfo*/ {
722
- mangle_internal_name_by_type_only ( ccx, t, ( ~"glue_" + name) )
723
- } else {
724
- mangle_internal_name_by_seq ( ccx, ( ~"glue_" + name) )
725
- } ) ;
715
+ let fn_nm = @mangle_internal_name_by_type_and_seq ( ccx, t, ( ~"glue_" + name) ) ;
726
716
debug ! ( "%s is for type %s" , * fn_nm, ppaux:: ty_to_str( ccx. tcx, t) ) ;
727
717
note_unique_llvm_symbol ( ccx, fn_nm) ;
728
718
let llfn = decl_cdecl_fn ( ccx. llmod , * fn_nm, llfnty) ;
0 commit comments