diff options
author | Anders Carlsson <andersca@mac.com> | 2011-01-29 20:36:11 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-01-29 20:36:11 +0000 |
commit | 678632fa42f77ac668b5a8d2b6c5307e034d48a1 (patch) | |
tree | 2e55d1d2675bd7d1243c8f371557349f3995a736 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 97a2895e73a0288d9edc896ce3f09674c6f4c61f (diff) | |
download | bcm5719-llvm-678632fa42f77ac668b5a8d2b6c5307e034d48a1.tar.gz bcm5719-llvm-678632fa42f77ac668b5a8d2b6c5307e034d48a1.zip |
Add RTTIBuilder::GetAddrOfTypeName which uses the newly added CreateOrReplaceCXXRuntimeVariable.
Set the visibility for typeinfo names.
llvm-svn: 124548
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 88de91afec7..41f499e5252 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -199,6 +199,10 @@ void CodeGenModule::setTypeVisibility(llvm::GlobalValue *GV, if (!CodeGenOpts.HiddenWeakVTables) return; + // We never want to drop the visibility for RTTI names. + if (TVK == TVK_ForRTTIName) + return; + // We want to drop the visibility to hidden for weak type symbols. // This isn't possible if there might be unresolved references // elsewhere that rely on this symbol being visible. |