summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-06-27 23:15:57 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-06-27 23:15:57 +0000
commit3beef8d6db3688b8265728a3b05970cd9628f523 (patch)
tree310d78331dae592b820e026554e21456ed5535d7 /llvm/lib/Target/ARM/ARMFastISel.cpp
parent990ff38786ce2300a38eeaaba510c40170223ef6 (diff)
downloadbcm5719-llvm-3beef8d6db3688b8265728a3b05970cd9628f523.tar.gz
bcm5719-llvm-3beef8d6db3688b8265728a3b05970cd9628f523.zip
Move shouldAssumeDSOLocal to Target.
Should fix the shared library build. llvm-svn: 273958
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index 84160ce5e84..dc6782f9a3a 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -2935,10 +2935,7 @@ bool ARMFastISel::tryToFoldLoadIntoMI(MachineInstr *MI, unsigned OpNo,
unsigned ARMFastISel::ARMLowerPICELF(const GlobalValue *GV,
unsigned Align, MVT VT) {
- Reloc::Model RM = TM.getRelocationModel();
- const Triple &TargetTriple = TM.getTargetTriple();
- bool UseGOT_PREL =
- !shouldAssumeDSOLocal(RM, TargetTriple, *GV->getParent(), GV);
+ bool UseGOT_PREL = !TM.shouldAssumeDSOLocal(*GV->getParent(), GV);
LLVMContext *Context = &MF->getFunction()->getContext();
unsigned ARMPCLabelIndex = AFI->createPICLabelUId();
OpenPOWER on IntegriCloud