[llvm-commits] [llvm] r75727 - /llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Tue Jul 14 18:53:37 PDT 2009
Author: lattner
Date: Tue Jul 14 20:53:36 2009
New Revision: 75727
URL: http://llvm.org/viewvc/llvm-project?rev=75727&view=rev
Log:
actually $stub labels *are* private, I just missed that
printSuffixedName automatically does this.
Modified:
llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp?rev=75727&r1=75726&r2=75727&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Tue Jul 14 20:53:36 2009
@@ -307,19 +307,15 @@
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.
More information about the llvm-commits
mailing list