summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
parent6b3afd7df119fcfc1a16182b598d8c4523916400 (diff)
downloadbcm5719-llvm-fd4834061c5b1e6e056d0d53da72980ae44b638e.tar.gz
bcm5719-llvm-fd4834061c5b1e6e056d0d53da72980ae44b638e.zip
Remove IsDefinition from CodeGenModule::setTypeVisibility; it is always true.
llvm-svn: 124529
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGRTTI.cpp2
-rw-r--r--clang/lib/CodeGen/CGVTables.cpp2
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp5
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h2
4 files changed, 5 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGRTTI.cpp b/clang/lib/CodeGen/CGRTTI.cpp
index 8af0ecd978b..4ba58c71639 100644
--- a/clang/lib/CodeGen/CGRTTI.cpp
+++ b/clang/lib/CodeGen/CGRTTI.cpp
@@ -644,7 +644,7 @@ llvm::Constant *RTTIBuilder::BuildTypeInfo(QualType Ty, bool Force) {
// 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)) {
diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp
index 5df3ac52b5a..6d8812a3aa8 100644
--- a/clang/lib/CodeGen/CGVTables.cpp
+++ b/clang/lib/CodeGen/CGVTables.cpp
@@ -3019,7 +3019,7 @@ CodeGenVTables::EmitVTableDefinition(llvm::GlobalVariable *VTable,
VTable->setLinkage(Linkage);
// Set the right visibility.
- CGM.setTypeVisibility(VTable, RD, /*ForRTTI*/ false, /*ForDef*/ true);
+ CGM.setTypeVisibility(VTable, RD, /*ForRTTI=*/false);
}
llvm::GlobalVariable *
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index ae61661da63..d2be432bbf8 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;
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index f38c0bc018f..bb32fff8268 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -265,7 +265,7 @@ public:
/// 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()))
OpenPOWER on IntegriCloud