mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +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:
parent
099c28e446
commit
ec9aa7eb95
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user