aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/ARMFastISel.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/ARMFastISel.cpp
parent82f4631c88c95812699f448fd2ad5472bbc36698 (diff)
downloadllvm-5ac8f5c379f6b56d64a11e0c469356ceb3443b4d.zip
llvm-5ac8f5c379f6b56d64a11e0c469356ceb3443b4d.tar.gz
llvm-5ac8f5c379f6b56d64a11e0c469356ceb3443b4d.tar.bz2
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/ARMFastISel.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index dc6782f..b62f272d 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -547,8 +547,7 @@ unsigned ARMFastISel::ARMMaterializeGV(const GlobalValue *GV, MVT VT) {
// For now 32-bit only.
if (VT != MVT::i32 || GV->isThreadLocal()) return 0;
- Reloc::Model RelocM = TM.getRelocationModel();
- bool IsIndirect = Subtarget->GVIsIndirectSymbol(GV, RelocM);
+ bool IsIndirect = Subtarget->isGVIndirectSymbol(GV);
const TargetRegisterClass *RC = isThumb2 ? &ARM::rGPRRegClass
: &ARM::GPRRegClass;
unsigned DestReg = createResultReg(RC);