summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-06-28 15:38:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-06-28 15:38:13 +0000
commit5ac8f5c379f6b56d64a11e0c469356ceb3443b4d (patch)
tree6c13a4dd8b7175caca722448487f4fbe9b9f236d /llvm/lib/Target/ARM/ARMISelLowering.cpp
parent82f4631c88c95812699f448fd2ad5472bbc36698 (diff)
downloadbcm5719-llvm-5ac8f5c379f6b56d64a11e0c469356ceb3443b4d.tar.gz
bcm5719-llvm-5ac8f5c379f6b56d64a11e0c469356ceb3443b4d.zip
Don't pass a Reloc::Model to GVIsIndirectSymbol.
It already has access to it. While at it, rename it to isGVIndirectSymbol. llvm-svn: 274023
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 2641d106803..f5416a42bfe 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -2860,8 +2860,7 @@ SDValue ARMTargetLowering::LowerGlobalAddressDarwin(SDValue Op,
SDValue G = DAG.getTargetGlobalAddress(GV, dl, PtrVT, 0, ARMII::MO_NONLAZY);
SDValue Result = DAG.getNode(Wrapper, dl, PtrVT, G);
- Reloc::Model RelocM = getTargetMachine().getRelocationModel();
- if (Subtarget->GVIsIndirectSymbol(GV, RelocM))
+ if (Subtarget->isGVIndirectSymbol(GV))
Result = DAG.getLoad(PtrVT, dl, DAG.getEntryNode(), Result,
MachinePointerInfo::getGOT(DAG.getMachineFunction()),
false, false, false, 0);
OpenPOWER on IntegriCloud