diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-15 01:53:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-15 01:53:36 +0000 |
commit | b7b179ead9a5daff00a6ee1034be4dee2b5b462d (patch) | |
tree | 9434d72aef2a3ba8c149c21451cca177d6300fb2 | |
parent | a9aa3523bfbf048c33eb52d44dd0449a10cc9c26 (diff) | |
download | external_llvm-b7b179ead9a5daff00a6ee1034be4dee2b5b462d.zip external_llvm-b7b179ead9a5daff00a6ee1034be4dee2b5b462d.tar.gz external_llvm-b7b179ead9a5daff00a6ee1034be4dee2b5b462d.tar.bz2 |
actually $stub labels *are* private, I just missed that
printSuffixedName automatically does this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75727 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index f23322f..6c84ae8 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -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. |