Back out 53091 for now.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 3 Jul 2008 18:11:29 +0000 (18:11 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 3 Jul 2008 18:11:29 +0000 (18:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53109 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86Subtarget.cpp

index fa630edb389127647254564063acdb5bb46c95ca..b4c58496961acb0dadd0e54d46f70a55e45e94c3 100644 (file)
@@ -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()) {