diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-27 23:15:57 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-27 23:15:57 +0000 |
commit | 3beef8d6db3688b8265728a3b05970cd9628f523 (patch) | |
tree | 310d78331dae592b820e026554e21456ed5535d7 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 990ff38786ce2300a38eeaaba510c40170223ef6 (diff) | |
download | bcm5719-llvm-3beef8d6db3688b8265728a3b05970cd9628f523.tar.gz bcm5719-llvm-3beef8d6db3688b8265728a3b05970cd9628f523.zip |
Move shouldAssumeDSOLocal to Target.
Should fix the shared library build.
llvm-svn: 273958
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. |