Temporarily revert r60519. It was causing a bootstrap failure:
[oota-llvm.git] / lib / Target / ARM / ARMISelLowering.cpp
index 42aee2677cdb1f3ead9ec4060f68c6f192f3bcf6..69452c13601f90c588fe5ea3be1e8ec19181207c 100644 (file)
@@ -830,7 +830,7 @@ SDValue ARMTargetLowering::LowerGlobalAddressELF(SDValue Op,
 /// GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol
 /// even in non-static mode.
 static bool GVIsIndirectSymbol(GlobalValue *GV, Reloc::Model RelocM) {
-  return RelocM != Reloc::Static && !GV->hasHiddenVisibility() &&
+  return RelocM != Reloc::Static &&
     (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() ||
      (GV->isDeclaration() && !GV->hasNotBeenReadFromBitcode()));
 }