diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-26 22:32:53 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-26 22:32:53 +0000 |
commit | 9dfcab0b93626804c92a4d9633601549e12075a3 (patch) | |
tree | b3b80b46610b2b1a2829562c2f88ff48d313aa5c | |
parent | 678eac4d05e386ba74b8a8a8bea6ec1972107248 (diff) |
Use isPositionIndependent. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273829 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index a1cd24ebba5..84160ce5e84 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/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) { |