summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/CGCXXABI.h
blob: e1bbb0a79cce7c5e7279c99c4f602c036caa54c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//===----- CGCXXABI.h - Interface to C++ ABIs -------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This provides an abstract class for C++ code generation. Concrete subclasses
// of this implement code generation for specific C++ ABIs.
//
//===----------------------------------------------------------------------===//

#ifndef CLANG_CODEGEN_CXXABI_H
#define CLANG_CODEGEN_CXXABI_H

namespace clang {
namespace CodeGen {
  class CodeGenModule;
  class MangleContext;

/// Implements C++ ABI-specific code generation functions.
class CXXABI {
public:
  virtual ~CXXABI();

  /// Gets the mangle context.
  virtual MangleContext &getMangleContext() = 0;
};

/// Creates an instance of a C++ ABI class.
CXXABI *CreateItaniumCXXABI(CodeGenModule &CGM);
CXXABI *CreateMicrosoftCXXABI(CodeGenModule &CGM);
}
}

#endif
OpenPOWER on IntegriCloud