Charles Davis | 3a811f1 | 2010-05-25 19:52:27 +0000 | [diff] [blame] | 1 | //===----- CGCXXABI.h - Interface to C++ ABIs -------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This provides an abstract class for C++ code generation. Concrete subclasses |
| 11 | // of this implement code generation for specific C++ ABIs. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef CLANG_CODEGEN_CXXABI_H |
| 16 | #define CLANG_CODEGEN_CXXABI_H |
| 17 | |
Chris Lattner | d47d3b0 | 2011-07-23 10:35:09 +0000 | [diff] [blame] | 18 | #include "clang/Basic/LLVM.h" |
| 19 | |
John McCall | 4c40d98 | 2010-08-31 07:33:07 +0000 | [diff] [blame] | 20 | #include "CodeGenFunction.h" |
| 21 | |
John McCall | 93d557b | 2010-08-22 00:05:51 +0000 | [diff] [blame] | 22 | namespace llvm { |
John McCall | cf2c85e | 2010-08-22 04:16:24 +0000 | [diff] [blame] | 23 | class Constant; |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 24 | class Type; |
John McCall | 93d557b | 2010-08-22 00:05:51 +0000 | [diff] [blame] | 25 | class Value; |
| 26 | } |
| 27 | |
Charles Davis | 3a811f1 | 2010-05-25 19:52:27 +0000 | [diff] [blame] | 28 | namespace clang { |
John McCall | 3023def | 2010-08-22 03:04:22 +0000 | [diff] [blame] | 29 | class CastExpr; |
John McCall | 4c40d98 | 2010-08-31 07:33:07 +0000 | [diff] [blame] | 30 | class CXXConstructorDecl; |
| 31 | class CXXDestructorDecl; |
John McCall | 875ab10 | 2010-08-22 06:43:33 +0000 | [diff] [blame] | 32 | class CXXMethodDecl; |
John McCall | cf2c85e | 2010-08-22 04:16:24 +0000 | [diff] [blame] | 33 | class CXXRecordDecl; |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 34 | class FieldDecl; |
Peter Collingbourne | 1411047 | 2011-01-13 18:57:25 +0000 | [diff] [blame] | 35 | class MangleContext; |
John McCall | 93d557b | 2010-08-22 00:05:51 +0000 | [diff] [blame] | 36 | |
Charles Davis | 3a811f1 | 2010-05-25 19:52:27 +0000 | [diff] [blame] | 37 | namespace CodeGen { |
John McCall | 93d557b | 2010-08-22 00:05:51 +0000 | [diff] [blame] | 38 | class CodeGenFunction; |
Charles Davis | 3a811f1 | 2010-05-25 19:52:27 +0000 | [diff] [blame] | 39 | class CodeGenModule; |
Charles Davis | 3a811f1 | 2010-05-25 19:52:27 +0000 | [diff] [blame] | 40 | |
James Dennett | 3b2adf2 | 2012-06-15 07:35:42 +0000 | [diff] [blame] | 41 | /// \brief Implements C++ ABI-specific code generation functions. |
Charles Davis | 071cc7d | 2010-08-16 03:33:14 +0000 | [diff] [blame] | 42 | class CGCXXABI { |
John McCall | d608cdb | 2010-08-22 10:59:02 +0000 | [diff] [blame] | 43 | protected: |
| 44 | CodeGenModule &CGM; |
Dylan Noblesmith | 6f42b62 | 2012-02-05 02:12:40 +0000 | [diff] [blame] | 45 | OwningPtr<MangleContext> MangleCtx; |
John McCall | d608cdb | 2010-08-22 10:59:02 +0000 | [diff] [blame] | 46 | |
Peter Collingbourne | 1411047 | 2011-01-13 18:57:25 +0000 | [diff] [blame] | 47 | CGCXXABI(CodeGenModule &CGM) |
| 48 | : CGM(CGM), MangleCtx(CGM.getContext().createMangleContext()) {} |
John McCall | d608cdb | 2010-08-22 10:59:02 +0000 | [diff] [blame] | 49 | |
John McCall | 4c40d98 | 2010-08-31 07:33:07 +0000 | [diff] [blame] | 50 | protected: |
| 51 | ImplicitParamDecl *&getThisDecl(CodeGenFunction &CGF) { |
Eli Friedman | cec5ebd | 2012-02-11 02:57:39 +0000 | [diff] [blame] | 52 | return CGF.CXXABIThisDecl; |
John McCall | 4c40d98 | 2010-08-31 07:33:07 +0000 | [diff] [blame] | 53 | } |
| 54 | llvm::Value *&getThisValue(CodeGenFunction &CGF) { |
Eli Friedman | cec5ebd | 2012-02-11 02:57:39 +0000 | [diff] [blame] | 55 | return CGF.CXXABIThisValue; |
John McCall | 4c40d98 | 2010-08-31 07:33:07 +0000 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | ImplicitParamDecl *&getVTTDecl(CodeGenFunction &CGF) { |
| 59 | return CGF.CXXVTTDecl; |
| 60 | } |
| 61 | llvm::Value *&getVTTValue(CodeGenFunction &CGF) { |
| 62 | return CGF.CXXVTTValue; |
| 63 | } |
| 64 | |
| 65 | /// Build a parameter variable suitable for 'this'. |
| 66 | void BuildThisParam(CodeGenFunction &CGF, FunctionArgList &Params); |
| 67 | |
| 68 | /// Perform prolog initialization of the parameter variable suitable |
| 69 | /// for 'this' emitted by BuildThisParam. |
| 70 | void EmitThisParam(CodeGenFunction &CGF); |
| 71 | |
John McCall | 1e7fe75 | 2010-09-02 09:58:18 +0000 | [diff] [blame] | 72 | ASTContext &getContext() const { return CGM.getContext(); } |
| 73 | |
John McCall | e2b45e2 | 2012-05-01 05:23:51 +0000 | [diff] [blame] | 74 | virtual bool requiresArrayCookie(const CXXDeleteExpr *E, QualType eltType); |
| 75 | virtual bool requiresArrayCookie(const CXXNewExpr *E); |
| 76 | |
Charles Davis | 3a811f1 | 2010-05-25 19:52:27 +0000 | [diff] [blame] | 77 | public: |
John McCall | d608cdb | 2010-08-22 10:59:02 +0000 | [diff] [blame] | 78 | |
Anders Carlsson | 1af610f | 2010-11-28 17:50:09 +0000 | [diff] [blame] | 79 | virtual ~CGCXXABI(); |
Charles Davis | 3a811f1 | 2010-05-25 19:52:27 +0000 | [diff] [blame] | 80 | |
| 81 | /// Gets the mangle context. |
Peter Collingbourne | 1411047 | 2011-01-13 18:57:25 +0000 | [diff] [blame] | 82 | MangleContext &getMangleContext() { |
| 83 | return *MangleCtx; |
| 84 | } |
John McCall | 93d557b | 2010-08-22 00:05:51 +0000 | [diff] [blame] | 85 | |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 86 | /// Find the LLVM type used to represent the given member pointer |
| 87 | /// type. |
Chris Lattner | 9cbe4f0 | 2011-07-09 17:41:47 +0000 | [diff] [blame] | 88 | virtual llvm::Type * |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 89 | ConvertMemberPointerType(const MemberPointerType *MPT); |
| 90 | |
| 91 | /// Load a member function from an object and a member function |
| 92 | /// pointer. Apply the this-adjustment and set 'This' to the |
| 93 | /// adjusted value. |
John McCall | 93d557b | 2010-08-22 00:05:51 +0000 | [diff] [blame] | 94 | virtual llvm::Value * |
| 95 | EmitLoadOfMemberFunctionPointer(CodeGenFunction &CGF, |
| 96 | llvm::Value *&This, |
| 97 | llvm::Value *MemPtr, |
| 98 | const MemberPointerType *MPT); |
John McCall | 3023def | 2010-08-22 03:04:22 +0000 | [diff] [blame] | 99 | |
John McCall | 6c2ab1d | 2010-08-31 21:07:20 +0000 | [diff] [blame] | 100 | /// Calculate an l-value from an object and a data member pointer. |
| 101 | virtual llvm::Value *EmitMemberDataPointerAddress(CodeGenFunction &CGF, |
| 102 | llvm::Value *Base, |
| 103 | llvm::Value *MemPtr, |
| 104 | const MemberPointerType *MPT); |
| 105 | |
John McCall | 4d4e5c1 | 2012-02-15 01:22:51 +0000 | [diff] [blame] | 106 | /// Perform a derived-to-base, base-to-derived, or bitcast member |
| 107 | /// pointer conversion. |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 108 | virtual llvm::Value *EmitMemberPointerConversion(CodeGenFunction &CGF, |
| 109 | const CastExpr *E, |
| 110 | llvm::Value *Src); |
John McCall | cf2c85e | 2010-08-22 04:16:24 +0000 | [diff] [blame] | 111 | |
John McCall | 4d4e5c1 | 2012-02-15 01:22:51 +0000 | [diff] [blame] | 112 | /// Perform a derived-to-base, base-to-derived, or bitcast member |
| 113 | /// pointer conversion on a constant value. |
| 114 | virtual llvm::Constant *EmitMemberPointerConversion(const CastExpr *E, |
| 115 | llvm::Constant *Src); |
| 116 | |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 117 | /// Return true if the given member pointer can be zero-initialized |
| 118 | /// (in the C++ sense) with an LLVM zeroinitializer. |
John McCall | f16aa10 | 2010-08-22 21:01:12 +0000 | [diff] [blame] | 119 | virtual bool isZeroInitializable(const MemberPointerType *MPT); |
John McCall | cf2c85e | 2010-08-22 04:16:24 +0000 | [diff] [blame] | 120 | |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 121 | /// Create a null member pointer of the given type. |
| 122 | virtual llvm::Constant *EmitNullMemberPointer(const MemberPointerType *MPT); |
John McCall | cf2c85e | 2010-08-22 04:16:24 +0000 | [diff] [blame] | 123 | |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 124 | /// Create a member pointer for the given method. |
John McCall | 755d849 | 2011-04-12 00:42:48 +0000 | [diff] [blame] | 125 | virtual llvm::Constant *EmitMemberPointer(const CXXMethodDecl *MD); |
John McCall | 875ab10 | 2010-08-22 06:43:33 +0000 | [diff] [blame] | 126 | |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 127 | /// Create a member pointer for the given field. |
John McCall | 5808ce4 | 2011-02-03 08:15:49 +0000 | [diff] [blame] | 128 | virtual llvm::Constant *EmitMemberDataPointer(const MemberPointerType *MPT, |
| 129 | CharUnits offset); |
John McCall | e9fd7eb | 2010-08-22 08:30:07 +0000 | [diff] [blame] | 130 | |
Richard Smith | 2d6a567 | 2012-01-14 04:30:29 +0000 | [diff] [blame] | 131 | /// Create a member pointer for the given member pointer constant. |
| 132 | virtual llvm::Constant *EmitMemberPointer(const APValue &MP, QualType MPT); |
| 133 | |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 134 | /// Emit a comparison between two member pointers. Returns an i1. |
John McCall | e9fd7eb | 2010-08-22 08:30:07 +0000 | [diff] [blame] | 135 | virtual llvm::Value * |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 136 | EmitMemberPointerComparison(CodeGenFunction &CGF, |
| 137 | llvm::Value *L, |
| 138 | llvm::Value *R, |
| 139 | const MemberPointerType *MPT, |
| 140 | bool Inequality); |
John McCall | e9fd7eb | 2010-08-22 08:30:07 +0000 | [diff] [blame] | 141 | |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 142 | /// Determine if a member pointer is non-null. Returns an i1. |
John McCall | e9fd7eb | 2010-08-22 08:30:07 +0000 | [diff] [blame] | 143 | virtual llvm::Value * |
John McCall | 0bab0cd | 2010-08-23 01:21:21 +0000 | [diff] [blame] | 144 | EmitMemberPointerIsNotNull(CodeGenFunction &CGF, |
| 145 | llvm::Value *MemPtr, |
| 146 | const MemberPointerType *MPT); |
John McCall | 4c40d98 | 2010-08-31 07:33:07 +0000 | [diff] [blame] | 147 | |
John McCall | 4d4e5c1 | 2012-02-15 01:22:51 +0000 | [diff] [blame] | 148 | protected: |
| 149 | /// A utility method for computing the offset required for the given |
| 150 | /// base-to-derived or derived-to-base member-pointer conversion. |
| 151 | /// Does not handle virtual conversions (in case we ever fully |
| 152 | /// support an ABI that allows this). Returns null if no adjustment |
| 153 | /// is required. |
| 154 | llvm::Constant *getMemberPointerAdjustment(const CastExpr *E); |
| 155 | |
| 156 | public: |
John McCall | 4c40d98 | 2010-08-31 07:33:07 +0000 | [diff] [blame] | 157 | /// Build the signature of the given constructor variant by adding |
| 158 | /// any required parameters. For convenience, ResTy has been |
| 159 | /// initialized to 'void', and ArgTys has been initialized with the |
| 160 | /// type of 'this' (although this may be changed by the ABI) and |
| 161 | /// will have the formal parameters added to it afterwards. |
| 162 | /// |
| 163 | /// If there are ever any ABIs where the implicit parameters are |
| 164 | /// intermixed with the formal parameters, we can address those |
| 165 | /// then. |
| 166 | virtual void BuildConstructorSignature(const CXXConstructorDecl *Ctor, |
| 167 | CXXCtorType T, |
| 168 | CanQualType &ResTy, |
Chris Lattner | 686775d | 2011-07-20 06:58:45 +0000 | [diff] [blame] | 169 | SmallVectorImpl<CanQualType> &ArgTys) = 0; |
John McCall | 4c40d98 | 2010-08-31 07:33:07 +0000 | [diff] [blame] | 170 | |
| 171 | /// Build the signature of the given destructor variant by adding |
| 172 | /// any required parameters. For convenience, ResTy has been |
| 173 | /// initialized to 'void' and ArgTys has been initialized with the |
| 174 | /// type of 'this' (although this may be changed by the ABI). |
| 175 | virtual void BuildDestructorSignature(const CXXDestructorDecl *Dtor, |
| 176 | CXXDtorType T, |
| 177 | CanQualType &ResTy, |
Chris Lattner | 686775d | 2011-07-20 06:58:45 +0000 | [diff] [blame] | 178 | SmallVectorImpl<CanQualType> &ArgTys) = 0; |
John McCall | 4c40d98 | 2010-08-31 07:33:07 +0000 | [diff] [blame] | 179 | |
| 180 | /// Build the ABI-specific portion of the parameter list for a |
| 181 | /// function. This generally involves a 'this' parameter and |
| 182 | /// possibly some extra data for constructors and destructors. |
| 183 | /// |
| 184 | /// ABIs may also choose to override the return type, which has been |
| 185 | /// initialized with the formal return type of the function. |
| 186 | virtual void BuildInstanceFunctionParams(CodeGenFunction &CGF, |
| 187 | QualType &ResTy, |
| 188 | FunctionArgList &Params) = 0; |
| 189 | |
| 190 | /// Emit the ABI-specific prolog for the function. |
| 191 | virtual void EmitInstanceFunctionProlog(CodeGenFunction &CGF) = 0; |
| 192 | |
| 193 | virtual void EmitReturnFromThunk(CodeGenFunction &CGF, |
| 194 | RValue RV, QualType ResultType); |
John McCall | 1e7fe75 | 2010-09-02 09:58:18 +0000 | [diff] [blame] | 195 | |
Joao Matos | 285baac | 2012-07-17 17:10:11 +0000 | [diff] [blame] | 196 | /// Gets the pure virtual member call function. |
| 197 | virtual StringRef GetPureVirtualCallName() = 0; |
| 198 | |
John McCall | 1e7fe75 | 2010-09-02 09:58:18 +0000 | [diff] [blame] | 199 | /**************************** Array cookies ******************************/ |
| 200 | |
| 201 | /// Returns the extra size required in order to store the array |
James Dennett | 16ae9de | 2012-06-22 10:16:05 +0000 | [diff] [blame] | 202 | /// cookie for the given new-expression. May return 0 to indicate that no |
John McCall | 1e7fe75 | 2010-09-02 09:58:18 +0000 | [diff] [blame] | 203 | /// array cookie is required. |
| 204 | /// |
| 205 | /// Several cases are filtered out before this method is called: |
| 206 | /// - non-array allocations never need a cookie |
James Dennett | 5900103 | 2012-06-20 00:57:15 +0000 | [diff] [blame] | 207 | /// - calls to \::operator new(size_t, void*) never need a cookie |
John McCall | 1e7fe75 | 2010-09-02 09:58:18 +0000 | [diff] [blame] | 208 | /// |
James Dennett | 16ae9de | 2012-06-22 10:16:05 +0000 | [diff] [blame] | 209 | /// \param expr - the new-expression being allocated. |
John McCall | 6ec278d | 2011-01-27 09:37:56 +0000 | [diff] [blame] | 210 | virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr); |
John McCall | 1e7fe75 | 2010-09-02 09:58:18 +0000 | [diff] [blame] | 211 | |
| 212 | /// Initialize the array cookie for the given allocation. |
| 213 | /// |
| 214 | /// \param NewPtr - a char* which is the presumed-non-null |
| 215 | /// return value of the allocation function |
| 216 | /// \param NumElements - the computed number of elements, |
John McCall | e2b45e2 | 2012-05-01 05:23:51 +0000 | [diff] [blame] | 217 | /// potentially collapsed from the multidimensional array case; |
| 218 | /// always a size_t |
John McCall | 1e7fe75 | 2010-09-02 09:58:18 +0000 | [diff] [blame] | 219 | /// \param ElementType - the base element allocated type, |
| 220 | /// i.e. the allocated type after stripping all array types |
| 221 | virtual llvm::Value *InitializeArrayCookie(CodeGenFunction &CGF, |
| 222 | llvm::Value *NewPtr, |
| 223 | llvm::Value *NumElements, |
John McCall | 6ec278d | 2011-01-27 09:37:56 +0000 | [diff] [blame] | 224 | const CXXNewExpr *expr, |
John McCall | 1e7fe75 | 2010-09-02 09:58:18 +0000 | [diff] [blame] | 225 | QualType ElementType); |
| 226 | |
| 227 | /// Reads the array cookie associated with the given pointer, |
| 228 | /// if it has one. |
| 229 | /// |
| 230 | /// \param Ptr - a pointer to the first element in the array |
| 231 | /// \param ElementType - the base element type of elements of the array |
| 232 | /// \param NumElements - an out parameter which will be initialized |
| 233 | /// with the number of elements allocated, or zero if there is no |
| 234 | /// cookie |
| 235 | /// \param AllocPtr - an out parameter which will be initialized |
| 236 | /// with a char* pointing to the address returned by the allocation |
| 237 | /// function |
| 238 | /// \param CookieSize - an out parameter which will be initialized |
| 239 | /// with the size of the cookie, or zero if there is no cookie |
| 240 | virtual void ReadArrayCookie(CodeGenFunction &CGF, llvm::Value *Ptr, |
John McCall | 6ec278d | 2011-01-27 09:37:56 +0000 | [diff] [blame] | 241 | const CXXDeleteExpr *expr, |
John McCall | 1e7fe75 | 2010-09-02 09:58:18 +0000 | [diff] [blame] | 242 | QualType ElementType, llvm::Value *&NumElements, |
| 243 | llvm::Value *&AllocPtr, CharUnits &CookieSize); |
| 244 | |
John McCall | e2b45e2 | 2012-05-01 05:23:51 +0000 | [diff] [blame] | 245 | protected: |
| 246 | /// Returns the extra size required in order to store the array |
| 247 | /// cookie for the given type. Assumes that an array cookie is |
| 248 | /// required. |
| 249 | virtual CharUnits getArrayCookieSizeImpl(QualType elementType); |
| 250 | |
| 251 | /// Reads the array cookie for an allocation which is known to have one. |
| 252 | /// This is called by the standard implementation of ReadArrayCookie. |
| 253 | /// |
| 254 | /// \param ptr - a pointer to the allocation made for an array, as a char* |
| 255 | /// \param cookieSize - the computed cookie size of an array |
James Dennett | 3b2adf2 | 2012-06-15 07:35:42 +0000 | [diff] [blame] | 256 | /// |
John McCall | e2b45e2 | 2012-05-01 05:23:51 +0000 | [diff] [blame] | 257 | /// Other parameters are as above. |
James Dennett | 3b2adf2 | 2012-06-15 07:35:42 +0000 | [diff] [blame] | 258 | /// |
John McCall | e2b45e2 | 2012-05-01 05:23:51 +0000 | [diff] [blame] | 259 | /// \return a size_t |
| 260 | virtual llvm::Value *readArrayCookieImpl(CodeGenFunction &IGF, |
| 261 | llvm::Value *ptr, |
| 262 | CharUnits cookieSize); |
| 263 | |
| 264 | public: |
| 265 | |
John McCall | 5cd91b5 | 2010-09-08 01:44:27 +0000 | [diff] [blame] | 266 | /*************************** Static local guards ****************************/ |
| 267 | |
John McCall | 3030eb8 | 2010-11-06 09:44:32 +0000 | [diff] [blame] | 268 | /// Emits the guarded initializer and destructor setup for the given |
| 269 | /// variable, given that it couldn't be emitted as a constant. |
Richard Smith | 7ca4850 | 2012-02-13 22:16:19 +0000 | [diff] [blame] | 270 | /// If \p PerformInit is false, the initialization has been folded to a |
| 271 | /// constant and should not be performed. |
John McCall | 3030eb8 | 2010-11-06 09:44:32 +0000 | [diff] [blame] | 272 | /// |
| 273 | /// The variable may be: |
| 274 | /// - a static local variable |
| 275 | /// - a static data member of a class template instantiation |
| 276 | virtual void EmitGuardedInit(CodeGenFunction &CGF, const VarDecl &D, |
Chandler Carruth | 0f30a12 | 2012-03-30 19:44:53 +0000 | [diff] [blame] | 277 | llvm::GlobalVariable *DeclPtr, bool PerformInit); |
John McCall | 5cd91b5 | 2010-09-08 01:44:27 +0000 | [diff] [blame] | 278 | |
John McCall | 20bb175 | 2012-05-01 06:13:13 +0000 | [diff] [blame] | 279 | /// Emit code to force the execution of a destructor during global |
| 280 | /// teardown. The default implementation of this uses atexit. |
| 281 | /// |
| 282 | /// \param dtor - a function taking a single pointer argument |
| 283 | /// \param addr - a pointer to pass to the destructor function. |
| 284 | virtual void registerGlobalDtor(CodeGenFunction &CGF, llvm::Constant *dtor, |
| 285 | llvm::Constant *addr); |
Charles Davis | 9ee494f | 2012-06-23 23:44:00 +0000 | [diff] [blame] | 286 | |
| 287 | /***************************** Virtual Tables *******************************/ |
| 288 | |
| 289 | /// Generates and emits the virtual tables for a class. |
| 290 | virtual void EmitVTables(const CXXRecordDecl *Class) = 0; |
Charles Davis | 3a811f1 | 2010-05-25 19:52:27 +0000 | [diff] [blame] | 291 | }; |
| 292 | |
| 293 | /// Creates an instance of a C++ ABI class. |
John McCall | ee79a4c | 2010-08-21 22:46:04 +0000 | [diff] [blame] | 294 | CGCXXABI *CreateARMCXXABI(CodeGenModule &CGM); |
Charles Davis | 071cc7d | 2010-08-16 03:33:14 +0000 | [diff] [blame] | 295 | CGCXXABI *CreateItaniumCXXABI(CodeGenModule &CGM); |
| 296 | CGCXXABI *CreateMicrosoftCXXABI(CodeGenModule &CGM); |
John McCall | 93d557b | 2010-08-22 00:05:51 +0000 | [diff] [blame] | 297 | |
Charles Davis | 3a811f1 | 2010-05-25 19:52:27 +0000 | [diff] [blame] | 298 | } |
| 299 | } |
| 300 | |
| 301 | #endif |