From fd4834061c5b1e6e056d0d53da72980ae44b638e Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 29 Jan 2011 05:26:32 +0000 Subject: Remove IsDefinition from CodeGenModule::setTypeVisibility; it is always true. llvm-svn: 124529 --- clang/lib/CodeGen/CodeGenModule.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') 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; -- cgit v1.1