diff --git a/clang/include/clang/CodeGen/CodeGenABITypes.h b/clang/include/clang/CodeGen/CodeGenABITypes.h index 0ba6c20192856b..3de57e30dbfd5f 100644 --- a/clang/include/clang/CodeGen/CodeGenABITypes.h +++ b/clang/include/clang/CodeGen/CodeGenABITypes.h @@ -81,6 +81,9 @@ const CGFunctionInfo &arrangeFreeFunctionCall(CodeGenModule &CGM, FunctionType::ExtInfo info, RequiredArgs args); +const CGFunctionInfo &arrangeCXXStructorDeclaration(CodeGenModule &CGM, + GlobalDecl GD); + /// Returns the implicit arguments to add to a complete, non-delegating C++ /// constructor call. ImplicitCXXConstructorArgs diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 215f215028be79..697e7fb505ed8c 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -367,6 +367,11 @@ CodeGenTypes::arrangeCXXStructorDeclaration(GlobalDecl GD) { argTypes, extInfo, paramInfos, required); } +const CGFunctionInfo &CodeGen::arrangeCXXStructorDeclaration(CodeGenModule &CGM, + GlobalDecl GD) { + return CGM.getTypes().arrangeCXXStructorDeclaration(GD); +} + static SmallVector getArgTypesForCall(ASTContext &ctx, const CallArgList &args) { SmallVector argTypes;