summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-06-26 22:30:06 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-06-26 22:30:06 +0000
commit12bb38d3671a4c98d22e46087e4ff49709f98d76 (patch)
tree02bdd2901a595b835b05d961bb0a7e0ed3d23813 /llvm/lib/CodeGen/SelectionDAG
parent405e25a97096b17f9ceabcf42bc2a4f7e2aed614 (diff)
downloadbcm5719-llvm-12bb38d3671a4c98d22e46087e4ff49709f98d76.tar.gz
bcm5719-llvm-12bb38d3671a4c98d22e46087e4ff49709f98d76.zip
Use isPositionIndependent predicate.
llvm-svn: 273828
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-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 5f091c88375..8b72a6c2c79 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -281,7 +281,7 @@ void TargetLowering::softenSetCCOperands(SelectionDAG &DAG, EVT VT,
/// returned value is a member of the MachineJumpTableInfo::JTEntryKind enum.
unsigned TargetLowering::getJumpTableEncoding() const {
// In non-pic modes, just use the address of a block.
- if (getTargetMachine().getRelocationModel() != Reloc::PIC_)
+ if (!isPositionIndependent())
return MachineJumpTableInfo::EK_BlockAddress;
// In PIC mode, if the target supports a GPRel32 directive, use it.
OpenPOWER on IntegriCloud