[llvm-commits] [llvm] r81506 - /llvm/trunk/lib/VMCore/Mangler.cpp
Chris Lattner
sabre at nondot.org
Thu Sep 10 22:51:29 PDT 2009
Author: lattner
Date: Fri Sep 11 00:51:29 2009
New Revision: 81506
URL: http://llvm.org/viewvc/llvm-project?rev=81506&view=rev
Log:
fix prefix ordering, it's L_foo not _Lfoo
Modified:
llvm/trunk/lib/VMCore/Mangler.cpp
Modified: llvm/trunk/lib/VMCore/Mangler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Mangler.cpp?rev=81506&r1=81505&r2=81506&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Mangler.cpp (original)
+++ llvm/trunk/lib/VMCore/Mangler.cpp Fri Sep 11 00:51:29 2009
@@ -170,13 +170,12 @@
// 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.
More information about the llvm-commits
mailing list