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.
printBasicBlockLabel(MO.getMBB(), false, false, VerboseAsm);
return;
case MachineOperand::MO_GlobalAddress:
- printSymbolOperand(MO);
- return;
case MachineOperand::MO_ExternalSymbol:
printSymbolOperand(MO);
return;