[llvm] r273829 - Use isPositionIndependent. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 26 15:32:53 PDT 2016


Author: rafael
Date: Sun Jun 26 17:32:53 2016
New Revision: 273829

URL: http://llvm.org/viewvc/llvm-project?rev=273829&view=rev
Log:
Use isPositionIndependent. NFC.

Modified:
    llvm/trunk/lib/Target/ARM/ARMFastISel.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=273829&r1=273828&r2=273829&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Sun Jun 26 17:32:53 2016
@@ -540,7 +540,7 @@ unsigned ARMFastISel::ARMMaterializeInt(
 }
 
 bool ARMFastISel::isPositionIndependent() const {
-  return TM.getRelocationModel() == Reloc::PIC_;
+  return TLI.isPositionIndependent();
 }
 
 unsigned ARMFastISel::ARMMaterializeGV(const GlobalValue *GV, MVT VT) {




More information about the llvm-commits mailing list