[llvm-commits] [llvm] r75721 - /llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Tue Jul 14 18:23:14 PDT 2009
Author: lattner
Date: Tue Jul 14 20:23:13 2009
New Revision: 75721
URL: http://llvm.org/viewvc/llvm-project?rev=75721&view=rev
Log:
$stub references should not be private ("L") labels.
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=75721&r1=75720&r2=75721&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Tue Jul 14 20:23:13 2009
@@ -307,16 +307,19 @@
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, Suffix[0] != '\0');
+ std::string Name = Mang->getMangledName(GV, Suffix, isPrivate);
decorateName(Name, GV);
// Handle dllimport linkage.
@@ -409,8 +412,6 @@
printBasicBlockLabel(MO.getMBB(), false, false, VerboseAsm);
return;
case MachineOperand::MO_GlobalAddress:
- printSymbolOperand(MO);
- return;
case MachineOperand::MO_ExternalSymbol:
printSymbolOperand(MO);
return;
More information about the llvm-commits
mailing list