summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-06-26 22:38:44 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-06-26 22:38:44 +0000
commit0a68bf96278aeb4684debb2c8140bdf3e6655753 (patch)
tree380841f699bed2c54d3635ab1a4c72de3c1489d1 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parente7151727919db757998b02ad56bc1ae99bbc36c9 (diff)
downloadbcm5719-llvm-0a68bf96278aeb4684debb2c8140bdf3e6655753.tar.gz
bcm5719-llvm-0a68bf96278aeb4684debb2c8140bdf3e6655753.zip
Use isPositionIndependent predicate. NFC.
llvm-svn: 273830
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 8b72a6c2c79..87ce2de0542 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -326,7 +326,7 @@ TargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
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.
OpenPOWER on IntegriCloud