Skip to content

Commit 16df02a

Browse files
committed
[CodeGen] Add public function to emit C++ constructor/destructor
function info
1 parent 1bcf1d7 commit 16df02a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

clang/include/clang/CodeGen/CodeGenABITypes.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ const CGFunctionInfo &arrangeFreeFunctionCall(CodeGenModule &CGM,
8181
FunctionType::ExtInfo info,
8282
RequiredArgs args);
8383

84+
const CGFunctionInfo &arrangeCXXStructorDeclaration(CodeGenModule &CGM,
85+
GlobalDecl GD);
86+
8487
/// Returns the implicit arguments to add to a complete, non-delegating C++
8588
/// constructor call.
8689
ImplicitCXXConstructorArgs

clang/lib/CodeGen/CGCall.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,11 @@ CodeGenTypes::arrangeCXXStructorDeclaration(GlobalDecl GD) {
367367
argTypes, extInfo, paramInfos, required);
368368
}
369369

370+
const CGFunctionInfo &CodeGen::arrangeCXXStructorDeclaration(CodeGenModule &CGM,
371+
GlobalDecl GD) {
372+
return CGM.getTypes().arrangeCXXStructorDeclaration(GD);
373+
}
374+
370375
static SmallVector<CanQualType, 16>
371376
getArgTypesForCall(ASTContext &ctx, const CallArgList &args) {
372377
SmallVector<CanQualType, 16> argTypes;

0 commit comments

Comments
 (0)