Skip to content

Commit a35aefd

Browse files
committed
Revert "[CodeGen] Add public function to emit C++ constructor/destructor"
This reverts commit 16df02a. The API was needed to get the correct return type for C++ constructors, but it's not needed anymore.
1 parent 807f7ad commit a35aefd

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

clang/include/clang/CodeGen/CodeGenABITypes.h

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

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

clang/lib/CodeGen/CGCall.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,11 +367,6 @@ 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-
375370
static SmallVector<CanQualType, 16>
376371
getArgTypesForCall(ASTContext &ctx, const CallArgList &args) {
377372
SmallVector<CanQualType, 16> argTypes;

0 commit comments

Comments
 (0)