diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-06 20:29:05 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-06 20:29:05 +0000 |
commit | a4c7c414efbb1317e50ac9c016fa9705c1b84d76 (patch) | |
tree | bb45ce088b713c509ba6115ea848164036958a75 /lib/Support | |
parent | f4ddea69ba6d92d59dcc3ff11b426d5d8b62ce8a (diff) | |
download | external_llvm-a4c7c414efbb1317e50ac9c016fa9705c1b84d76.zip external_llvm-a4c7c414efbb1317e50ac9c016fa9705c1b84d76.tar.gz external_llvm-a4c7c414efbb1317e50ac9c016fa9705c1b84d76.tar.bz2 |
Work around apparent Apple compiler bug which was making all mangled
names start with l0_.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/Mangler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Mangler.cpp b/lib/Support/Mangler.cpp index 0705c9b..4b34687 100644 --- a/lib/Support/Mangler.cpp +++ b/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++) + "_" |