diff options
| author | 2017-01-14 19:55:43 +0000 | |
|---|---|---|
| committer | 2017-01-14 19:55:43 +0000 | |
| commit | bd3306aecb3a15e8967143b8cdbbccf2b1b19b74 (patch) | |
| tree | 309a8132b44564b9e634c0da6815187ce8eab27c /gnu/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp | |
| parent | killp -a should not kill the window if only one pane. (diff) | |
| download | wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.tar.xz wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.zip | |
Import LLVM 3.9.1 including clang and lld.
Diffstat (limited to 'gnu/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp')
| -rw-r--r-- | gnu/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gnu/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp b/gnu/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp index 0b49fcdd8f7..67d5e0179fe 100644 --- a/gnu/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp +++ b/gnu/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp @@ -40,21 +40,11 @@ SystemZSubtarget::SystemZSubtarget(const Triple &TT, const std::string &CPU, HasPopulationCount(false), HasFastSerialization(false), HasInterlockedAccess1(false), HasMiscellaneousExtensions(false), HasTransactionalExecution(false), HasProcessorAssist(false), - HasVector(false), TargetTriple(TT), + HasVector(false), HasLoadStoreOnCond2(false), TargetTriple(TT), InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM, *this), TSInfo(), FrameLowering() {} -// Return true if GV binds locally under reloc model RM. -static bool bindsLocally(const GlobalValue *GV, Reloc::Model RM) { - // For non-PIC, all symbols bind locally. - if (RM == Reloc::Static) - return true; - - return GV->hasLocalLinkage() || !GV->hasDefaultVisibility(); -} - 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. @@ -63,7 +53,7 @@ bool SystemZSubtarget::isPC32DBLSymbol(const GlobalValue *GV, // For the small model, all locally-binding symbols are in range. if (CM == CodeModel::Small) - return bindsLocally(GV, RM); + 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 |
