@@ -314,7 +314,8 @@ CodeGenTypes::arrangeCXXMethodDeclaration(const CXXMethodDecl *MD) {
314
314
315
315
if (MD->isImplicitObjectMemberFunction ()) {
316
316
// The abstract case is perfectly fine.
317
- const CXXRecordDecl *ThisType = TheCXXABI.getThisArgumentTypeForMethod (MD);
317
+ const CXXRecordDecl *ThisType =
318
+ getCXXABI ().getThisArgumentTypeForMethod (MD);
318
319
return arrangeCXXMethodType (ThisType, prototype.getTypePtr (), MD);
319
320
}
320
321
@@ -337,7 +338,7 @@ CodeGenTypes::arrangeCXXStructorDeclaration(GlobalDecl GD) {
337
338
SmallVector<CanQualType, 16 > argTypes;
338
339
SmallVector<FunctionProtoType::ExtParameterInfo, 16 > paramInfos;
339
340
340
- const CXXRecordDecl *ThisType = TheCXXABI .getThisArgumentTypeForMethod (GD);
341
+ const CXXRecordDecl *ThisType = getCXXABI () .getThisArgumentTypeForMethod (GD);
341
342
argTypes.push_back (DeriveThisType (ThisType, MD));
342
343
343
344
bool PassParams = true ;
@@ -356,7 +357,7 @@ CodeGenTypes::arrangeCXXStructorDeclaration(GlobalDecl GD) {
356
357
appendParameterTypes (*this , argTypes, paramInfos, FTP);
357
358
358
359
CGCXXABI::AddedStructorArgCounts AddedArgs =
359
- TheCXXABI .buildStructorSignature (GD, argTypes);
360
+ getCXXABI () .buildStructorSignature (GD, argTypes);
360
361
if (!paramInfos.empty ()) {
361
362
// Note: prefix implies after the first param.
362
363
if (AddedArgs.Prefix )
@@ -372,11 +373,10 @@ CodeGenTypes::arrangeCXXStructorDeclaration(GlobalDecl GD) {
372
373
: RequiredArgs::All);
373
374
374
375
FunctionType::ExtInfo extInfo = FTP->getExtInfo ();
375
- CanQualType resultType = TheCXXABI.HasThisReturn (GD)
376
- ? argTypes.front ()
377
- : TheCXXABI.hasMostDerivedReturn (GD)
378
- ? CGM.getContext ().VoidPtrTy
379
- : Context.VoidTy ;
376
+ CanQualType resultType = getCXXABI ().HasThisReturn (GD) ? argTypes.front ()
377
+ : getCXXABI ().hasMostDerivedReturn (GD)
378
+ ? CGM.getContext ().VoidPtrTy
379
+ : Context.VoidTy ;
380
380
return arrangeLLVMFunctionInfo (resultType, FnInfoOpts::IsInstanceMethod,
381
381
argTypes, extInfo, paramInfos, required);
382
382
}
@@ -437,11 +437,10 @@ CodeGenTypes::arrangeCXXConstructorCall(const CallArgList &args,
437
437
: RequiredArgs::All;
438
438
439
439
GlobalDecl GD (D, CtorKind);
440
- CanQualType ResultType = TheCXXABI.HasThisReturn (GD)
441
- ? ArgTypes.front ()
442
- : TheCXXABI.hasMostDerivedReturn (GD)
443
- ? CGM.getContext ().VoidPtrTy
444
- : Context.VoidTy ;
440
+ CanQualType ResultType = getCXXABI ().HasThisReturn (GD) ? ArgTypes.front ()
441
+ : getCXXABI ().hasMostDerivedReturn (GD)
442
+ ? CGM.getContext ().VoidPtrTy
443
+ : Context.VoidTy ;
445
444
446
445
FunctionType::ExtInfo Info = FPT->getExtInfo ();
447
446
llvm::SmallVector<FunctionProtoType::ExtParameterInfo, 16 > ParamInfos;
0 commit comments