aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-06 10:21:33 -0700
committerPatrick Walton <[email protected]>2011-05-06 12:37:59 -0700
commit8e7aeed2d51327a7e1c806e66267465d0adcfa25 (patch)
treedef189abe3f31c1ffab3ace39b379dea205a16c5 /src/comp
parentGe the host triple using LLVM. Fix a few 'mutable' warnings also. (diff)
downloadrust-8e7aeed2d51327a7e1c806e66267465d0adcfa25.tar.xz
rust-8e7aeed2d51327a7e1c806e66267465d0adcfa25.zip
rustc: Include a representation of the type in question in the symbols generated for tydescs
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/trans.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 45c39ca7..84576623 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -1731,7 +1731,7 @@ fn declare_tydesc(@local_ctxt cx, ty.t t) -> @tydesc_info {
auto glue_fn_ty = T_ptr(T_glue_fn(ccx.tn));
- auto name = mangle_name_by_seq(ccx, cx.path, "tydesc");
+ auto name = mangle_name_by_type_only(ccx, t, "tydesc");
auto gvar = llvm.LLVMAddGlobal(ccx.llmod, T_tydesc(ccx.tn),
_str.buf(name));
auto tydesc = C_struct(vec(C_null(T_ptr(T_ptr(T_tydesc(ccx.tn)))),