projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
099c28e
)
the mangler should put suffixes on unnamed global's mangled names as well
author
Chris Lattner
<sabre@nondot.org>
Mon, 13 Jul 2009 23:20:38 +0000
(23:20 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 13 Jul 2009 23:20:38 +0000
(23:20 +0000)
if present.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75547
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Mangler.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Mangler.cpp
b/lib/VMCore/Mangler.cpp
index 50724f4e424c0ee5dc8cad89b0494029984dbfbb..948bb36a6573e4950930a7e9108237979e30918c 100644
(file)
--- a/
lib/VMCore/Mangler.cpp
+++ b/
lib/VMCore/Mangler.cpp
@@
-163,7
+163,7
@@
std::string Mangler::getValueName(const GlobalValue *GV, const char *Suffix) {
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);