diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-26 22:30:06 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-26 22:30:06 +0000 |
| commit | 12bb38d3671a4c98d22e46087e4ff49709f98d76 (patch) | |
| tree | 02bdd2901a595b835b05d961bb0a7e0ed3d23813 /llvm/lib/CodeGen/SelectionDAG | |
| parent | 405e25a97096b17f9ceabcf42bc2a4f7e2aed614 (diff) | |
| download | bcm5719-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.cpp | 2 |
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. |

