Make sure to set the visible on a vtable; VTTs and typeinfo already

handle visibility properly. Fixes <rdar://problem/8091955>. 

llvm-svn: 105977
This commit is contained in:
Douglas Gregor
2010-06-14 23:41:45 +00:00
parent 1726d1517e
commit 4f6e8deec4
2 changed files with 22 additions and 1 deletions

View File

@@ -2926,6 +2926,9 @@ CodeGenVTables::EmitVTableDefinition(llvm::GlobalVariable *VTable,
// Set the correct linkage.
VTable->setLinkage(Linkage);
// Set the right visibility.
CGM.setGlobalVisibility(VTable, RD);
}
llvm::GlobalVariable *