File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 869e9017ebfbb222503c503a1b319b5a3e81f74b
2
+ refs/heads/master: cf3e737eeeabb26ca555fd8ed85f4df7317e992a
Original file line number Diff line number Diff line change @@ -1783,7 +1783,14 @@ fn declare_tydesc(@local_ctxt cx, ty.t t) -> @tydesc_info {
1783
1783
1784
1784
auto glue_fn_ty = T_ptr ( T_glue_fn ( ccx. tn ) ) ;
1785
1785
1786
- auto name = mangle_name_by_type_only ( ccx, t, "tydesc" ) ;
1786
+ auto name;
1787
+ if ( cx. ccx . sess . get_opts ( ) . debuginfo ) {
1788
+ name = mangle_name_by_type_only ( cx. ccx , t, "tydesc" ) ;
1789
+ name = sanitize ( name) ;
1790
+ } else {
1791
+ name = mangle_name_by_seq ( cx. ccx , cx. path , "tydesc" ) ;
1792
+ }
1793
+
1787
1794
auto gvar = llvm. LLVMAddGlobal ( ccx. llmod , T_tydesc ( ccx. tn ) ,
1788
1795
Str . buf ( name) ) ;
1789
1796
auto tydesc = C_struct ( vec ( C_null ( T_ptr ( T_ptr ( T_tydesc ( ccx. tn ) ) ) ) ,
You can’t perform that action at this time.
0 commit comments