// 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)) {
VTable->setLinkage(Linkage);
// Set the right visibility.
- CGM.setTypeVisibility(VTable, RD, /*ForRTTI*/ false, /*ForDef*/ true);
+ CGM.setTypeVisibility(VTable, RD, /*ForRTTI=*/false);
}
llvm::GlobalVariable *
/// 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;
/// 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()))