1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

actually $stub labels *are* private, I just missed that

printSuffixedName automatically does this.

llvm-svn: 75727
This commit is contained in:
Chris Lattner 2009-07-15 01:53:36 +00:00
parent 1c4b831cb2
commit 4fd9c770a6

View File

@ -307,19 +307,15 @@ void X86ATTAsmPrinter::printSymbolOperand(const MachineOperand &MO) {
const GlobalValue *GV = MO.getGlobal();
const char *Suffix = "";
bool isPrivate = false;
if (MO.getTargetFlags() == X86II::MO_DARWIN_STUB)
Suffix = "$stub";
else if (MO.getTargetFlags() == X86II::MO_DARWIN_NONLAZY ||
MO.getTargetFlags() == X86II::MO_DARWIN_NONLAZY_PIC_BASE ||
MO.getTargetFlags() == X86II::MO_DARWIN_HIDDEN_NONLAZY ||
MO.getTargetFlags() == X86II::MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE) {
MO.getTargetFlags() == X86II::MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE)
Suffix = "$non_lazy_ptr";
isPrivate = true;
}
std::string Name = Mang->getMangledName(GV, Suffix, isPrivate);
std::string Name = Mang->getMangledName(GV, Suffix, Suffix[0] != '\0');
decorateName(Name, GV);
// Handle dllimport linkage.