[cfe-commits] r124529 - in /cfe/trunk/lib/CodeGen: CGRTTI.cpp CGVTables.cpp CodeGenModule.cpp CodeGenModule.h
Anders Carlsson
andersca at mac.com
Fri Jan 28 21:26:32 PST 2011
Author: andersca
Date: Fri Jan 28 23:26:32 2011
New Revision: 124529
URL: http://llvm.org/viewvc/llvm-project?rev=124529&view=rev
Log:
Remove IsDefinition from CodeGenModule::setTypeVisibility; it is always true.
Modified:
cfe/trunk/lib/CodeGen/CGRTTI.cpp
cfe/trunk/lib/CodeGen/CGVTables.cpp
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
cfe/trunk/lib/CodeGen/CodeGenModule.h
Modified: cfe/trunk/lib/CodeGen/CGRTTI.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRTTI.cpp?rev=124529&r1=124528&r2=124529&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRTTI.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRTTI.cpp Fri Jan 28 23:26:32 2011
@@ -644,7 +644,7 @@
// compatibility.
if (const RecordType *RT = dyn_cast<RecordType>(Ty))
CGM.setTypeVisibility(GV, cast<CXXRecordDecl>(RT->getDecl()),
- /*ForRTTI*/ true, /*ForDefinition*/ true);
+ /*ForRTTI=*/true);
else if (Hidden ||
(CGM.getCodeGenOpts().HiddenWeakVTables &&
Linkage == llvm::GlobalValue::LinkOnceODRLinkage)) {
Modified: cfe/trunk/lib/CodeGen/CGVTables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVTables.cpp?rev=124529&r1=124528&r2=124529&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVTables.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVTables.cpp Fri Jan 28 23:26:32 2011
@@ -3019,7 +3019,7 @@
VTable->setLinkage(Linkage);
// Set the right visibility.
- CGM.setTypeVisibility(VTable, RD, /*ForRTTI*/ false, /*ForDef*/ true);
+ CGM.setTypeVisibility(VTable, RD, /*ForRTTI=*/false);
}
llvm::GlobalVariable *
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=124529&r1=124528&r2=124529&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Fri Jan 28 23:26:32 2011
@@ -195,9 +195,8 @@
/// 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;
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.h?rev=124529&r1=124528&r2=124529&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.h Fri Jan 28 23:26:32 2011
@@ -265,7 +265,7 @@
/// setTypeVisibility - Set the visibility for the given global
/// value which holds information about a type.
void setTypeVisibility(llvm::GlobalValue *GV, const CXXRecordDecl *D,
- bool IsForRTTI, bool IsForDefinition) const;
+ bool IsForRTTI) const;
llvm::Constant *GetAddrOfGlobal(GlobalDecl GD) {
if (isa<CXXConstructorDecl>(GD.getDecl()))
More information about the cfe-commits
mailing list