Revert 124633. The linker has been told how to merge available_externally.

llvm-svn: 124651
This commit is contained in:
Rafael Espindola
2011-02-01 05:45:26 +00:00
parent 4a9b18d07b
commit 88ea6ab44f
2 changed files with 3 additions and 2 deletions

View File

@@ -174,7 +174,8 @@ void CodeGenModule::setGlobalVisibility(llvm::GlobalValue *GV,
// Set visibility for definitions.
NamedDecl::LinkageInfo LV = D->getLinkageAndVisibility();
GV->setVisibility(GetLLVMVisibility(LV.visibility()));
if (LV.visibilityExplicit() || !GV->hasAvailableExternallyLinkage())
GV->setVisibility(GetLLVMVisibility(LV.visibility()));
}
/// Set the symbol visibility of type information (vtable and RTTI)