diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-07-03 18:11:29 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-07-03 18:11:29 +0000 |
commit | cb2627395d995e7727711c3319303183cb741ef3 (patch) | |
tree | 277943a63e95fb4a32716563908d62eb6f82c1e0 /lib/Target/X86/X86Subtarget.cpp | |
parent | 0ae33ef202b1318888220f147e248af4b994dffc (diff) |
Back out 53091 for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index fa630edb38..b4c5849696 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -47,8 +47,7 @@ bool X86Subtarget::GVRequiresExtraLoad(const GlobalValue* GV, // Extra load is needed for all externally visible. if (isDirectCall) return false; - if (GV->hasInternalLinkage() || - (GV->hasHiddenVisibility() && !GV->isDeclaration())) + if (GV->hasInternalLinkage() || GV->hasHiddenVisibility()) return false; return true; } else if (isTargetCygMing() || isTargetWindows()) { |