diff options
author | Anders Carlsson <andersca@mac.com> | 2011-01-29 05:26:32 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-01-29 05:26:32 +0000 |
commit | fd4834061c5b1e6e056d0d53da72980ae44b638e (patch) | |
tree | 006605b4d12c1ad2e14c123f8f02b88e3524c10d /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 6b3afd7df119fcfc1a16182b598d8c4523916400 (diff) | |
download | llvm-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.cpp | 5 |
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; |