diff options
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 87ce2de0542..10dcb0a266d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -316,13 +316,11 @@ TargetLowering::getPICJumpTableRelocBaseExpr(const MachineFunction *MF, bool TargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const { const TargetMachine &TM = getTargetMachine(); - Reloc::Model RM = TM.getRelocationModel(); const GlobalValue *GV = GA->getGlobal(); - const Triple &TargetTriple = TM.getTargetTriple(); // If the address is not even local to this DSO we will have to load it from // a got and then add the offset. - if (!shouldAssumeDSOLocal(RM, TargetTriple, *GV->getParent(), GV)) + if (!TM.shouldAssumeDSOLocal(*GV->getParent(), GV)) return false; // If the code is position independent we will have to add a base register. |

