aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-01-29 05:26:32 +0000
committerAnders Carlsson <andersca@mac.com>2011-01-29 05:26:32 +0000
commitfd4834061c5b1e6e056d0d53da72980ae44b638e (patch)
tree006605b4d12c1ad2e14c123f8f02b88e3524c10d /clang/lib/CodeGen/CodeGenModule.cpp
parent6b3afd7df119fcfc1a16182b598d8c4523916400 (diff)
downloadllvm-fd4834061c5b1e6e056d0d53da72980ae44b638e.zip
llvm-fd4834061c5b1e6e056d0d53da72980ae44b638e.tar.gz
llvm-fd4834061c5b1e6e056d0d53da72980ae44b638e.tar.bz2
Remove IsDefinition from CodeGenModule::setTypeVisibility; it is always true.
llvm-svn: 124529
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index ae61661..d2be432 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -195,9 +195,8 @@ void CodeGenModule::setGlobalVisibility(llvm::GlobalValue *GV,
/// associated with the given type.
void CodeGenModule::setTypeVisibility(llvm::GlobalValue *GV,
const CXXRecordDecl *RD,
- bool IsForRTTI,
- bool IsForDefinition) const {
- setGlobalVisibility(GV, RD, IsForDefinition);
+ bool IsForRTTI) const {
+ setGlobalVisibility(GV, RD, /*IsForDefinition=*/true);
if (!CodeGenOpts.HiddenWeakVTables)
return;