mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 17:31:50 +00:00
Merge two identical if branches. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273674 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da1fb5d832
commit
fa5b3f7e55
@ -200,20 +200,17 @@ void PPCAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
|
||||
// External or weakly linked global variables need non-lazily-resolved stubs
|
||||
if (TM.getRelocationModel() != Reloc::Static &&
|
||||
!GV->isStrongDefinitionForLinker()) {
|
||||
if (!GV->hasHiddenVisibility() ||
|
||||
(GV->isDeclaration() || GV->hasCommonLinkage() ||
|
||||
GV->hasAvailableExternallyLinkage())) {
|
||||
SymToPrint = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr");
|
||||
MachineModuleInfoImpl::StubValueTy &StubSym =
|
||||
MMI->getObjFileInfo<MachineModuleInfoMachO>().getGVStubEntry(
|
||||
SymToPrint);
|
||||
if (!StubSym.getPointer())
|
||||
StubSym = MachineModuleInfoImpl::StubValueTy(
|
||||
getSymbol(GV), !GV->hasInternalLinkage());
|
||||
} else {
|
||||
SymToPrint = getSymbol(GV);
|
||||
}
|
||||
!GV->isStrongDefinitionForLinker() &&
|
||||
(!GV->hasHiddenVisibility() ||
|
||||
(GV->isDeclaration() || GV->hasCommonLinkage() ||
|
||||
GV->hasAvailableExternallyLinkage()))) {
|
||||
SymToPrint = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr");
|
||||
MachineModuleInfoImpl::StubValueTy &StubSym =
|
||||
MMI->getObjFileInfo<MachineModuleInfoMachO>().getGVStubEntry(
|
||||
SymToPrint);
|
||||
if (!StubSym.getPointer())
|
||||
StubSym = MachineModuleInfoImpl::StubValueTy(getSymbol(GV),
|
||||
!GV->hasInternalLinkage());
|
||||
} else {
|
||||
SymToPrint = getSymbol(GV);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user