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/Target/SystemZ/SystemZSubtarget.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/Target/SystemZ/SystemZSubtarget.cpp')
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZSubtarget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp b/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp index 5f947495e32..b8476309463 100644 --- a/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp +++ b/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp @@ -46,7 +46,6 @@ SystemZSubtarget::SystemZSubtarget(const Triple &TT, const std::string &CPU, TSInfo(), FrameLowering() {} bool SystemZSubtarget::isPC32DBLSymbol(const GlobalValue *GV, - Reloc::Model RM, CodeModel::Model CM) const { // PC32DBL accesses require the low bit to be clear. Note that a zero // value selects the default alignment and is therefore OK. @@ -55,7 +54,7 @@ bool SystemZSubtarget::isPC32DBLSymbol(const GlobalValue *GV, // For the small model, all locally-binding symbols are in range. if (CM == CodeModel::Small) - return shouldAssumeDSOLocal(RM, TargetTriple, *GV->getParent(), GV); + return TLInfo.getTargetMachine().shouldAssumeDSOLocal(*GV->getParent(), GV); // For Medium and above, assume that the symbol is not within the 4GB range. // Taking the address of locally-defined text would be OK, but that |

