mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
fix prefix ordering, it's L_foo not _Lfoo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81506 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5b7dfeebff
commit
ceddb2b856
@ -170,13 +170,12 @@ void Mangler::getNameWithPrefix(SmallVectorImpl<char> &OutName,
|
||||
// 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user