diff options
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMFastISel.cpp | 2 |
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) { |