[llvm-commits] [llvm] r75547 - /llvm/trunk/lib/VMCore/Mangler.cpp
Chris Lattner
sabre at nondot.org
Mon Jul 13 16:20:38 PDT 2009
Author: lattner
Date: Mon Jul 13 18:20:38 2009
New Revision: 75547
URL: http://llvm.org/viewvc/llvm-project?rev=75547&view=rev
Log:
the mangler should put suffixes on unnamed global's mangled names as well
if present.
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=75547&r1=75546&r2=75547&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Mangler.cpp (original)
+++ llvm/trunk/lib/VMCore/Mangler.cpp Mon Jul 13 18:20:38 2009
@@ -163,7 +163,7 @@
Name = GV->getNameStart(); // Is an intrinsic function
} else if (!GV->hasName()) {
// Must mangle the global into a unique ID.
- Name = "__unnamed_" + utostr(Count++);
+ Name = "__unnamed_" + utostr(Count++) + Suffix;
} else {
if (GV->hasPrivateLinkage())
Name = makeNameProper(GV->getName() + Suffix, Prefix, PrivatePrefix);
More information about the llvm-commits
mailing list