mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
the mangler should put suffixes on unnamed global's mangled names as well
if present. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -163,7 +163,7 @@ std::string Mangler::getValueName(const GlobalValue *GV, const char *Suffix) {
|
|||||||
Name = GV->getNameStart(); // Is an intrinsic function
|
Name = GV->getNameStart(); // Is an intrinsic function
|
||||||
} else if (!GV->hasName()) {
|
} else if (!GV->hasName()) {
|
||||||
// Must mangle the global into a unique ID.
|
// Must mangle the global into a unique ID.
|
||||||
Name = "__unnamed_" + utostr(Count++);
|
Name = "__unnamed_" + utostr(Count++) + Suffix;
|
||||||
} else {
|
} else {
|
||||||
if (GV->hasPrivateLinkage())
|
if (GV->hasPrivateLinkage())
|
||||||
Name = makeNameProper(GV->getName() + Suffix, Prefix, PrivatePrefix);
|
Name = makeNameProper(GV->getName() + Suffix, Prefix, PrivatePrefix);
|
||||||
|
Reference in New Issue
Block a user