Skip to content

Commit 76c0a52

Browse files
committed
---
yaml --- r: 2451 b: refs/heads/master c: cf3e737 h: refs/heads/master i: 2449: faf219a 2447: f36eb0b v: v3
1 parent 3cd9185 commit 76c0a52

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 869e9017ebfbb222503c503a1b319b5a3e81f74b
2+
refs/heads/master: cf3e737eeeabb26ca555fd8ed85f4df7317e992a

trunk/src/comp/middle/trans.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,14 @@ fn declare_tydesc(@local_ctxt cx, ty.t t) -> @tydesc_info {
17831783

17841784
auto glue_fn_ty = T_ptr(T_glue_fn(ccx.tn));
17851785

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+
17871794
auto gvar = llvm.LLVMAddGlobal(ccx.llmod, T_tydesc(ccx.tn),
17881795
Str.buf(name));
17891796
auto tydesc = C_struct(vec(C_null(T_ptr(T_ptr(T_tydesc(ccx.tn)))),

0 commit comments

Comments
 (0)