[llvm] r273830 - Use isPositionIndependent predicate. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 26 15:38:44 PDT 2016
Author: rafael
Date: Sun Jun 26 17:38:44 2016
New Revision: 273830
URL: http://llvm.org/viewvc/llvm-project?rev=273830&view=rev
Log:
Use isPositionIndependent predicate. NFC.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp?rev=273830&r1=273829&r2=273830&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp Sun Jun 26 17:38:44 2016
@@ -326,7 +326,7 @@ TargetLowering::isOffsetFoldingLegal(con
return false;
// If the code is position independent we will have to add a base register.
- if (RM == Reloc::PIC_)
+ if (isPositionIndependent())
return false;
// Otherwise we can do it.
More information about the llvm-commits
mailing list