mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Use existing predicate. NFC.
This doesn't handle ELF, but neither did the previous code. llvm-svn: 273677
This commit is contained in:
parent
f847cc5a2c
commit
bedd02e480
@ -199,11 +199,7 @@ void PPCAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
|||||||
MCSymbol *SymToPrint;
|
MCSymbol *SymToPrint;
|
||||||
|
|
||||||
// External or weakly linked global variables need non-lazily-resolved stubs
|
// External or weakly linked global variables need non-lazily-resolved stubs
|
||||||
if (TM.getRelocationModel() != Reloc::Static &&
|
if (Subtarget->hasLazyResolverStub(GV)) {
|
||||||
!GV->isStrongDefinitionForLinker() &&
|
|
||||||
(!GV->hasHiddenVisibility() ||
|
|
||||||
(GV->isDeclaration() || GV->hasCommonLinkage() ||
|
|
||||||
GV->hasAvailableExternallyLinkage()))) {
|
|
||||||
SymToPrint = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr");
|
SymToPrint = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr");
|
||||||
MachineModuleInfoImpl::StubValueTy &StubSym =
|
MachineModuleInfoImpl::StubValueTy &StubSym =
|
||||||
MMI->getObjFileInfo<MachineModuleInfoMachO>().getGVStubEntry(
|
MMI->getObjFileInfo<MachineModuleInfoMachO>().getGVStubEntry(
|
||||||
|
Loading…
Reference in New Issue
Block a user