summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Mangler.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-07-06 20:29:05 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-07-06 20:29:05 +0000
commit84e1bb8effd2c1ac083612856a24e3ea7b69a8b3 (patch)
tree8bc1828167719ffbcd73dee2ba6bb3b35c576231 /llvm/lib/Support/Mangler.cpp
parent810583d4c4c9ee295d7be8539de3197303e6e907 (diff)
downloadbcm5719-llvm-84e1bb8effd2c1ac083612856a24e3ea7b69a8b3.tar.gz
bcm5719-llvm-84e1bb8effd2c1ac083612856a24e3ea7b69a8b3.zip
Work around apparent Apple compiler bug which was making all mangled
names start with l0_. llvm-svn: 14651
Diffstat (limited to 'llvm/lib/Support/Mangler.cpp')
-rw-r--r--llvm/lib/Support/Mangler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Mangler.cpp b/llvm/lib/Support/Mangler.cpp
index 0705c9b608c..4b346871166 100644
--- a/llvm/lib/Support/Mangler.cpp
+++ b/llvm/lib/Support/Mangler.cpp
@@ -71,8 +71,8 @@ std::string Mangler::getValueName(const Value *V) {
} else {
// Non-global, or global with internal linkage / colliding name
// -> mangle.
- name = "l" + utostr(V->getType()->getUniqueID()) + "_" +
- makeNameProper(V->getName());
+ unsigned TypeUniqueID = V->getType()->getUniqueID();
+ name = "l" + utostr(TypeUniqueID) + "_" + makeNameProper(V->getName());
}
} else {
name = "ltmp_" + utostr(Count++) + "_"
OpenPOWER on IntegriCloud