diff options
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 4 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/hidden-vis-3.ll | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 8e3a818690f..ee5b010ecf2 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -141,9 +141,7 @@ bool TargetMachine::shouldAssumeDSOLocal(const Module &M, // produce a 0 if it turns out the symbol is undefined. While this // is ABI and relocation depended, it seems worth it to handle it // here. - // FIXME: this is probably not ELF specific. - if (GV && isPositionIndependent() && TT.isOSBinFormatELF() && - GV->hasExternalWeakLinkage()) + if (GV && isPositionIndependent() && GV->hasExternalWeakLinkage()) return false; if (GV && !GV->hasDefaultVisibility()) diff --git a/llvm/test/CodeGen/X86/hidden-vis-3.ll b/llvm/test/CodeGen/X86/hidden-vis-3.ll index 5d9ef44a4d4..3137b936f5b 100644 --- a/llvm/test/CodeGen/X86/hidden-vis-3.ll +++ b/llvm/test/CodeGen/X86/hidden-vis-3.ll @@ -10,7 +10,7 @@ entry: ; X32: movl _y, %eax ; X64: _t: -; X64: movl _y(%rip), %eax +; X64: movq _y@GOTPCREL(%rip), %rax %0 = load i32, i32* @x, align 4 ; <i32> [#uses=1] %1 = load i32, i32* @y, align 4 ; <i32> [#uses=1] |