diff options
author | Anders Carlsson <andersca@mac.com> | 2011-01-29 20:24:48 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-01-29 20:24:48 +0000 |
commit | 265aa7c070bdb019c880aca348381cc27189ea03 (patch) | |
tree | c938718257f2c4ef6f1e04e85b23020aa5462ca5 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 326e4a2966eb68192c8ab7a60cd44ee3791b0f83 (diff) | |
download | bcm5719-llvm-265aa7c070bdb019c880aca348381cc27189ea03.tar.gz bcm5719-llvm-265aa7c070bdb019c880aca348381cc27189ea03.zip |
Change CodeGenModule::setTypeVisibility to take a TypeVisibilityKind enum instead of an "IsForRTTI" flag.
llvm-svn: 124546
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 66ac9fac5c9..88de91afec7 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -193,7 +193,7 @@ void CodeGenModule::setGlobalVisibility(llvm::GlobalValue *GV, /// associated with the given type. void CodeGenModule::setTypeVisibility(llvm::GlobalValue *GV, const CXXRecordDecl *RD, - bool IsForRTTI) const { + TypeVisibilityKind TVK) const { setGlobalVisibility(GV, RD); if (!CodeGenOpts.HiddenWeakVTables) @@ -242,9 +242,10 @@ void CodeGenModule::setTypeVisibility(llvm::GlobalValue *GV, // If there's a key function, there may be translation units // that don't have the key function's definition. But ignore // this if we're emitting RTTI under -fno-rtti. - if (!IsForRTTI || Features.RTTI) + if (!(TVK != TVK_ForRTTI) || Features.RTTI) { if (Context.getKeyFunction(RD)) return; + } // Otherwise, drop the visibility to hidden. GV->setVisibility(llvm::GlobalValue::HiddenVisibility); |