CodeGenTypes already has a reference to a CGCXXABI. Use this directly
rather than going through CodeGenModule to get to the same information.
This is consistent with other references to CGCXXABI in CodeGenTypes
functions defined in CGCall.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191854
91177308-0d34-0410-b5e6-
96231b3b80d8
if (MD->isInstance()) {
// The abstract case is perfectly fine.
- const CXXRecordDecl *ThisType =
- CGM.getCXXABI().getThisArgumentTypeForMethod(MD);
+ const CXXRecordDecl *ThisType = TheCXXABI.getThisArgumentTypeForMethod(MD);
return arrangeCXXMethodType(ThisType, prototype.getTypePtr());
}
const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(RT->getDecl());
if (!RD)
return false;
- return CGT.CGM.getCXXABI().isReturnTypeIndirect(RD);
+ return CGT.getCXXABI().isReturnTypeIndirect(RD);
}
const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(RT->getDecl());
if (!RD)
return CGCXXABI::RAA_Default;
- return CGT.CGM.getCXXABI().getRecordArgABI(RD);
+ return CGT.getCXXABI().getRecordArgABI(RD);
}
static CGCXXABI::RecordArgABI getRecordArgABI(QualType T,