//===----- CGCXXABI.h - Interface to C++ ABIs -------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This provides an abstract class for C++ code generation. Concrete subclasses // of this implement code generation for specific C++ ABIs. // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGCXXABI_H #define LLVM_CLANG_LIB_CODEGEN_CGCXXABI_H #include "CodeGenFunction.h" #include "clang/Basic/LLVM.h" #include "clang/CodeGen/CodeGenABITypes.h" namespace llvm { class Constant; class Type; class Value; class CallInst; } namespace clang { class CastExpr; class CXXConstructorDecl; class CXXDestructorDecl; class CXXMethodDecl; class CXXRecordDecl; class MangleContext; namespace CodeGen { class CGCallee; class CodeGenFunction; class CodeGenModule; struct CatchTypeInfo; /// Implements C++ ABI-specific code generation functions. class CGCXXABI { … }; // Create an instance of a C++ ABI class: /// Creates an Itanium-family ABI. CGCXXABI *CreateItaniumCXXABI(CodeGenModule &CGM); /// Creates a Microsoft-family ABI. CGCXXABI *CreateMicrosoftCXXABI(CodeGenModule &CGM); struct CatchRetScope final : EHScopeStack::Cleanup { … }; } } #endif