aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-11 05:51:29 +0000
committerChris Lattner <sabre@nondot.org>2009-09-11 05:51:29 +0000
commitceddb2b8565023b7d525f1bfd0afc5ba6e7f807f (patch)
tree7db3d365979f66e5a3b8b6f4951207970be37892
parent5b7dfeebffe606a9be2e3d1eb82e339cfde14069 (diff)
fix prefix ordering, it's L_foo not _Lfoo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81506 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Mangler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp
index 21ba086d19..d56e8e2ee0 100644
--- a/lib/VMCore/Mangler.cpp
+++ b/lib/VMCore/Mangler.cpp
@@ -170,13 +170,12 @@ void Mangler::getNameWithPrefix(SmallVectorImpl<char> &OutName,
// If the global is anonymous or not led with \1, then add the appropriate
// prefix.
if (!GV->hasName() || GV->getName()[0] != '\1') {
- OutName.append(Prefix, Prefix+strlen(Prefix));
-
if (GV->hasPrivateLinkage() || isImplicitlyPrivate)
OutName.append(PrivatePrefix, PrivatePrefix+strlen(PrivatePrefix));
else if (GV->hasLinkerPrivateLinkage())
OutName.append(LinkerPrivatePrefix,
LinkerPrivatePrefix+strlen(LinkerPrivatePrefix));;
+ OutName.append(Prefix, Prefix+strlen(Prefix));
}
// If the global has a name, just append it now.