summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGVTT.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-01-29 19:34:19 +0000
committerAnders Carlsson <andersca@mac.com>2011-01-29 19:34:19 +0000
commit5963024ff6e93555e0f0f1b1565c52ca72960a64 (patch)
treeea54a324da733041b76154fb9fe1143132204901 /clang/lib/CodeGen/CGVTT.cpp
parent883fc72c3c8273e61d92f43e7b6d9cc6bc7244c7 (diff)
downloadbcm5719-llvm-5963024ff6e93555e0f0f1b1565c52ca72960a64.tar.gz
bcm5719-llvm-5963024ff6e93555e0f0f1b1565c52ca72960a64.zip
Give VTTs the right visibility.
llvm-svn: 124540
Diffstat (limited to 'clang/lib/CodeGen/CGVTT.cpp')
-rw-r--r--clang/lib/CodeGen/CGVTT.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGVTT.cpp b/clang/lib/CodeGen/CGVTT.cpp
index 5ebe92b5394..fd8f576a044 100644
--- a/clang/lib/CodeGen/CGVTT.cpp
+++ b/clang/lib/CodeGen/CGVTT.cpp
@@ -384,6 +384,9 @@ CodeGenVTables::EmitVTTDefinition(llvm::GlobalVariable *VTT,
// Set the correct linkage.
VTT->setLinkage(Linkage);
+
+ // Set the right visibility.
+ CGM.setTypeVisibility(VTT, RD, /*ForRTTI=*/false);
}
llvm::GlobalVariable *CodeGenVTables::GetAddrOfVTT(const CXXRecordDecl *RD) {
OpenPOWER on IntegriCloud