forked from OSchip/llvm-project
parent
671513553c
commit
ce37f03273
|
@ -207,8 +207,8 @@ void PPCAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||||
MMI->getObjFileInfo<MachineModuleInfoMachO>().getGVStubEntry(
|
MMI->getObjFileInfo<MachineModuleInfoMachO>().getGVStubEntry(
|
||||||
SymToPrint);
|
SymToPrint);
|
||||||
if (!StubSym.getPointer())
|
if (!StubSym.getPointer())
|
||||||
StubSym = MachineModuleInfoImpl::
|
StubSym = MachineModuleInfoImpl::StubValueTy(
|
||||||
StubValueTy(getSymbol(GV), !GV->hasInternalLinkage());
|
getSymbol(GV), !GV->hasInternalLinkage());
|
||||||
} else if (GV->isDeclaration() || GV->hasCommonLinkage() ||
|
} else if (GV->isDeclaration() || GV->hasCommonLinkage() ||
|
||||||
GV->hasAvailableExternallyLinkage()) {
|
GV->hasAvailableExternallyLinkage()) {
|
||||||
SymToPrint = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr");
|
SymToPrint = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr");
|
||||||
|
@ -217,8 +217,8 @@ void PPCAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||||
MMI->getObjFileInfo<MachineModuleInfoMachO>().getGVStubEntry(
|
MMI->getObjFileInfo<MachineModuleInfoMachO>().getGVStubEntry(
|
||||||
SymToPrint);
|
SymToPrint);
|
||||||
if (!StubSym.getPointer())
|
if (!StubSym.getPointer())
|
||||||
StubSym = MachineModuleInfoImpl::
|
StubSym = MachineModuleInfoImpl::StubValueTy(
|
||||||
StubValueTy(getSymbol(GV), !GV->hasInternalLinkage());
|
getSymbol(GV), !GV->hasInternalLinkage());
|
||||||
} else {
|
} else {
|
||||||
SymToPrint = getSymbol(GV);
|
SymToPrint = getSymbol(GV);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue