summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-06-26 22:32:53 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-06-26 22:32:53 +0000
commite7151727919db757998b02ad56bc1ae99bbc36c9 (patch)
treea49b09bb46ada513471a31c40de1b945624c6a1b /llvm/lib/Target/ARM/ARMFastISel.cpp
parent12bb38d3671a4c98d22e46087e4ff49709f98d76 (diff)
downloadbcm5719-llvm-e7151727919db757998b02ad56bc1ae99bbc36c9.tar.gz
bcm5719-llvm-e7151727919db757998b02ad56bc1ae99bbc36c9.zip
Use isPositionIndependent. NFC.
llvm-svn: 273829
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index a1cd24ebba5..84160ce5e84 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -540,7 +540,7 @@ unsigned ARMFastISel::ARMMaterializeInt(const Constant *C, MVT VT) {
}
bool ARMFastISel::isPositionIndependent() const {
- return TM.getRelocationModel() == Reloc::PIC_;
+ return TLI.isPositionIndependent();
}
unsigned ARMFastISel::ARMMaterializeGV(const GlobalValue *GV, MVT VT) {
OpenPOWER on IntegriCloud