Unbreaks linking with gold, which cannot resolve direct relocations referring
to global symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251342
91177308-0d34-0410-b5e6-
96231b3b80d8
unsigned ARMFastISel::ARMLowerPICELF(const GlobalValue *GV,
unsigned Align, MVT VT) {
bool UseGOT_PREL =
- !(GV->hasHiddenVisibility() || GV->isStrongDefinitionForLinker());
+ !(GV->hasHiddenVisibility() || GV->hasLocalLinkage());
LLVMContext *Context = &MF->getFunction()->getContext();
unsigned ARMPCLabelIndex = AFI->createPICLabelUId();
const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
if (getTargetMachine().getRelocationModel() == Reloc::PIC_) {
bool UseGOT_PREL =
- !(GV->hasHiddenVisibility() || GV->isStrongDefinitionForLinker());
+ !(GV->hasHiddenVisibility() || GV->hasLocalLinkage());
MachineFunction &MF = DAG.getMachineFunction();
ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>();