Use existing predicate. NFC.

This doesn't handle ELF, but neither did the previous code.

llvm-svn: 273677
This commit is contained in:
Rafael Espindola 2016-06-24 13:28:26 +00:00
parent 2517843eaf
commit f092cc8a14
1 changed files with 1 additions and 5 deletions

View File

@ -199,11 +199,7 @@ void PPCAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
MCSymbol *SymToPrint;
// External or weakly linked global variables need non-lazily-resolved stubs
if (TM.getRelocationModel() != Reloc::Static &&
!GV->isStrongDefinitionForLinker() &&
(!GV->hasHiddenVisibility() ||
(GV->isDeclaration() || GV->hasCommonLinkage() ||
GV->hasAvailableExternallyLinkage()))) {
if (Subtarget->hasLazyResolverStub(GV)) {
SymToPrint = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr");
MachineModuleInfoImpl::StubValueTy &StubSym =
MMI->getObjFileInfo<MachineModuleInfoMachO>().getGVStubEntry(