Set unnamed_addr for type infos that we are confortable marking as hidden. I

think it is safe to mark all type infos with unnamed_addr, but I am not sure.

llvm-svn: 123275
This commit is contained in:
Rafael Espindola
2011-01-11 21:44:37 +00:00
parent 447cb38fbe
commit b1e879c80f
4 changed files with 12 additions and 7 deletions

View File

@@ -251,6 +251,7 @@ void CodeGenModule::setTypeVisibility(llvm::GlobalValue *GV,
// Otherwise, drop the visibility to hidden.
GV->setVisibility(llvm::GlobalValue::HiddenVisibility);
GV->setUnnamedAddr(true);
}
llvm::StringRef CodeGenModule::getMangledName(GlobalDecl GD) {