@@ -314,7 +314,8 @@ CodeGenTypes::arrangeCXXMethodDeclaration(const CXXMethodDecl *MD) {
314314
315315 if (MD->isImplicitObjectMemberFunction ()) {
316316 // The abstract case is perfectly fine.
317- const CXXRecordDecl *ThisType = TheCXXABI.getThisArgumentTypeForMethod (MD);
317+ const CXXRecordDecl *ThisType =
318+ getCXXABI ().getThisArgumentTypeForMethod (MD);
318319 return arrangeCXXMethodType (ThisType, prototype.getTypePtr (), MD);
319320 }
320321
@@ -337,7 +338,7 @@ CodeGenTypes::arrangeCXXStructorDeclaration(GlobalDecl GD) {
337338 SmallVector<CanQualType, 16 > argTypes;
338339 SmallVector<FunctionProtoType::ExtParameterInfo, 16 > paramInfos;
339340
340- const CXXRecordDecl *ThisType = TheCXXABI .getThisArgumentTypeForMethod (GD);
341+ const CXXRecordDecl *ThisType = getCXXABI () .getThisArgumentTypeForMethod (GD);
341342 argTypes.push_back (DeriveThisType (ThisType, MD));
342343
343344 bool PassParams = true ;
@@ -356,7 +357,7 @@ CodeGenTypes::arrangeCXXStructorDeclaration(GlobalDecl GD) {
356357 appendParameterTypes (*this , argTypes, paramInfos, FTP);
357358
358359 CGCXXABI::AddedStructorArgCounts AddedArgs =
359- TheCXXABI .buildStructorSignature (GD, argTypes);
360+ getCXXABI () .buildStructorSignature (GD, argTypes);
360361 if (!paramInfos.empty ()) {
361362 // Note: prefix implies after the first param.
362363 if (AddedArgs.Prefix )
@@ -372,11 +373,10 @@ CodeGenTypes::arrangeCXXStructorDeclaration(GlobalDecl GD) {
372373 : RequiredArgs::All);
373374
374375 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 ;
380380 return arrangeLLVMFunctionInfo (resultType, FnInfoOpts::IsInstanceMethod,
381381 argTypes, extInfo, paramInfos, required);
382382}
@@ -437,11 +437,10 @@ CodeGenTypes::arrangeCXXConstructorCall(const CallArgList &args,
437437 : RequiredArgs::All;
438438
439439 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 ;
445444
446445 FunctionType::ExtInfo Info = FPT->getExtInfo ();
447446 llvm::SmallVector<FunctionProtoType::ExtParameterInfo, 16 > ParamInfos;
0 commit comments