Daniel Dunbar | 303e2c2 | 2008-08-11 02:45:11 +0000 | [diff] [blame] | 1 | //===----- CGObjCRuntime.h - Interface to ObjC Runtimes ---------*- C++ -*-===// |
Chris Lattner | b7256cd | 2008-03-01 08:50:34 +0000 | [diff] [blame] | 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 Objective-C code generation. Concrete |
| 11 | // subclasses of this implement code generation for specific Objective-C |
| 12 | // runtime libraries. |
| 13 | // |
| 14 | //===----------------------------------------------------------------------===// |
| 15 | |
| 16 | #ifndef CLANG_CODEGEN_OBCJRUNTIME_H |
| 17 | #define CLANG_CODEGEN_OBCJRUNTIME_H |
Daniel Dunbar | 221fa94 | 2008-08-11 04:54:23 +0000 | [diff] [blame] | 18 | #include "clang/Basic/IdentifierTable.h" // Selector |
Fariborz Jahanian | f3648b8 | 2009-05-05 21:36:57 +0000 | [diff] [blame] | 19 | #include "clang/AST/DeclObjC.h" |
Argyrios Kyrtzidis | 28172cb | 2008-06-01 21:23:24 +0000 | [diff] [blame] | 20 | #include <string> |
Chris Lattner | b7256cd | 2008-03-01 08:50:34 +0000 | [diff] [blame] | 21 | |
Daniel Dunbar | cb46385 | 2008-11-01 01:53:16 +0000 | [diff] [blame] | 22 | #include "CGBuilder.h" |
Daniel Dunbar | 41cf9de | 2008-09-09 01:06:48 +0000 | [diff] [blame] | 23 | #include "CGCall.h" |
Daniel Dunbar | cb46385 | 2008-11-01 01:53:16 +0000 | [diff] [blame] | 24 | #include "CGValue.h" |
Daniel Dunbar | 97db84c | 2008-08-23 03:46:30 +0000 | [diff] [blame] | 25 | |
Chris Lattner | b7256cd | 2008-03-01 08:50:34 +0000 | [diff] [blame] | 26 | namespace llvm { |
Chris Lattner | b7256cd | 2008-03-01 08:50:34 +0000 | [diff] [blame] | 27 | class Constant; |
Daniel Dunbar | 9fd114d | 2009-04-22 07:32:20 +0000 | [diff] [blame] | 28 | class Function; |
| 29 | class Module; |
| 30 | class StructLayout; |
Daniel Dunbar | 7b4dfc8 | 2009-04-22 09:39:34 +0000 | [diff] [blame] | 31 | class StructType; |
Chris Lattner | b7256cd | 2008-03-01 08:50:34 +0000 | [diff] [blame] | 32 | class Type; |
| 33 | class Value; |
Chris Lattner | b7256cd | 2008-03-01 08:50:34 +0000 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | namespace clang { |
Daniel Dunbar | 41cf9de | 2008-09-09 01:06:48 +0000 | [diff] [blame] | 37 | namespace CodeGen { |
| 38 | class CodeGenFunction; |
| 39 | } |
Daniel Dunbar | 97db84c | 2008-08-23 03:46:30 +0000 | [diff] [blame] | 40 | |
Daniel Dunbar | 9fd114d | 2009-04-22 07:32:20 +0000 | [diff] [blame] | 41 | class FieldDecl; |
Anders Carlsson | 1963b0c | 2008-09-09 10:04:29 +0000 | [diff] [blame] | 42 | class ObjCAtTryStmt; |
| 43 | class ObjCAtThrowStmt; |
Chris Lattner | e132e24 | 2008-11-15 21:26:17 +0000 | [diff] [blame] | 44 | class ObjCAtSynchronizedStmt; |
Fariborz Jahanian | 0196a1c | 2009-01-10 21:06:09 +0000 | [diff] [blame] | 45 | class ObjCContainerDecl; |
Daniel Dunbar | 9299250 | 2008-08-15 22:20:32 +0000 | [diff] [blame] | 46 | class ObjCCategoryImplDecl; |
| 47 | class ObjCImplementationDecl; |
Daniel Dunbar | 7c6d3a7 | 2008-08-16 00:25:02 +0000 | [diff] [blame] | 48 | class ObjCInterfaceDecl; |
Daniel Dunbar | 97db84c | 2008-08-23 03:46:30 +0000 | [diff] [blame] | 49 | class ObjCMessageExpr; |
Daniel Dunbar | 9299250 | 2008-08-15 22:20:32 +0000 | [diff] [blame] | 50 | class ObjCMethodDecl; |
Daniel Dunbar | 89da6ad | 2008-08-13 00:59:25 +0000 | [diff] [blame] | 51 | class ObjCProtocolDecl; |
Chris Lattner | 6d522c0 | 2008-06-26 04:37:12 +0000 | [diff] [blame] | 52 | class Selector; |
Fariborz Jahanian | 9f84b78 | 2009-02-02 20:02:29 +0000 | [diff] [blame] | 53 | class ObjCIvarDecl; |
Steve Naroff | 66afeb5 | 2009-03-31 16:53:37 +0000 | [diff] [blame] | 54 | class ObjCStringLiteral; |
Daniel Dunbar | 89da6ad | 2008-08-13 00:59:25 +0000 | [diff] [blame] | 55 | |
Chris Lattner | b7256cd | 2008-03-01 08:50:34 +0000 | [diff] [blame] | 56 | namespace CodeGen { |
Chris Lattner | 87ab27d | 2008-06-26 04:19:03 +0000 | [diff] [blame] | 57 | class CodeGenModule; |
Chris Lattner | b7256cd | 2008-03-01 08:50:34 +0000 | [diff] [blame] | 58 | |
Mike Stump | 18bb928 | 2009-05-16 07:57:57 +0000 | [diff] [blame] | 59 | // FIXME: Several methods should be pure virtual but aren't to avoid the |
| 60 | // partially-implemented subclass breaking. |
Anton Korobeynikov | 1200aca | 2008-06-01 14:13:53 +0000 | [diff] [blame] | 61 | |
| 62 | /// Implements runtime-specific code generation functions. |
Chris Lattner | b7256cd | 2008-03-01 08:50:34 +0000 | [diff] [blame] | 63 | class CGObjCRuntime { |
Daniel Dunbar | dc406b8 | 2010-04-05 21:36:35 +0000 | [diff] [blame] | 64 | protected: |
Daniel Dunbar | 9fd114d | 2009-04-22 07:32:20 +0000 | [diff] [blame] | 65 | // Utility functions for unified ivar access. These need to |
| 66 | // eventually be folded into other places (the structure layout |
| 67 | // code). |
| 68 | |
Daniel Dunbar | 7b4dfc8 | 2009-04-22 09:39:34 +0000 | [diff] [blame] | 69 | /// Compute an offset to the given ivar, suitable for passing to |
| 70 | /// EmitValueForIvarAtOffset. Note that the correct handling of |
| 71 | /// bit-fields is carefully coordinated by these two, use caution! |
Daniel Dunbar | 96120237 | 2009-05-03 12:57:56 +0000 | [diff] [blame] | 72 | /// |
| 73 | /// The latter overload is suitable for computing the offset of a |
| 74 | /// sythesized ivar. |
Daniel Dunbar | 9fd114d | 2009-04-22 07:32:20 +0000 | [diff] [blame] | 75 | uint64_t ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, |
| 76 | const ObjCInterfaceDecl *OID, |
| 77 | const ObjCIvarDecl *Ivar); |
Daniel Dunbar | 96120237 | 2009-05-03 12:57:56 +0000 | [diff] [blame] | 78 | uint64_t ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, |
| 79 | const ObjCImplementationDecl *OID, |
| 80 | const ObjCIvarDecl *Ivar); |
Daniel Dunbar | 9fd114d | 2009-04-22 07:32:20 +0000 | [diff] [blame] | 81 | |
| 82 | LValue EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF, |
| 83 | const ObjCInterfaceDecl *OID, |
| 84 | llvm::Value *BaseValue, |
| 85 | const ObjCIvarDecl *Ivar, |
| 86 | unsigned CVRQualifiers, |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 87 | llvm::Value *Offset); |
Daniel Dunbar | 48595de | 2008-08-11 16:50:21 +0000 | [diff] [blame] | 88 | |
Chris Lattner | b7256cd | 2008-03-01 08:50:34 +0000 | [diff] [blame] | 89 | public: |
| 90 | virtual ~CGObjCRuntime(); |
Daniel Dunbar | 9299250 | 2008-08-15 22:20:32 +0000 | [diff] [blame] | 91 | |
| 92 | /// Generate the function required to register all Objective-C components in |
| 93 | /// this compilation unit with the runtime library. |
| 94 | virtual llvm::Function *ModuleInitFunction() = 0; |
| 95 | |
| 96 | /// Get a selector for the specified name and type values. The |
| 97 | /// return value should have the LLVM type for pointer-to |
| 98 | /// ASTContext::getObjCSelType(). |
Daniel Dunbar | cb46385 | 2008-11-01 01:53:16 +0000 | [diff] [blame] | 99 | virtual llvm::Value *GetSelector(CGBuilderTy &Builder, |
Fariborz Jahanian | 9240f3d | 2010-06-17 19:56:20 +0000 | [diff] [blame] | 100 | Selector Sel, bool lval=false) = 0; |
Daniel Dunbar | 9299250 | 2008-08-15 22:20:32 +0000 | [diff] [blame] | 101 | |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 102 | /// Get a typed selector. |
Fariborz Jahanian | f3648b8 | 2009-05-05 21:36:57 +0000 | [diff] [blame] | 103 | virtual llvm::Value *GetSelector(CGBuilderTy &Builder, |
| 104 | const ObjCMethodDecl *Method) = 0; |
| 105 | |
Daniel Dunbar | 9299250 | 2008-08-15 22:20:32 +0000 | [diff] [blame] | 106 | /// Generate a constant string object. |
David Chisnall | 481e3a8 | 2010-01-23 02:40:42 +0000 | [diff] [blame] | 107 | virtual llvm::Constant *GenerateConstantString(const StringLiteral *) = 0; |
Daniel Dunbar | 9299250 | 2008-08-15 22:20:32 +0000 | [diff] [blame] | 108 | |
| 109 | /// Generate a category. A category contains a list of methods (and |
| 110 | /// accompanying metadata) and a list of protocols. |
| 111 | virtual void GenerateCategory(const ObjCCategoryImplDecl *OCD) = 0; |
| 112 | |
| 113 | /// Generate a class stucture for this class. |
| 114 | virtual void GenerateClass(const ObjCImplementationDecl *OID) = 0; |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 115 | |
| 116 | /// Generate an Objective-C message send operation. |
Daniel Dunbar | aff9fca | 2009-09-17 04:01:22 +0000 | [diff] [blame] | 117 | /// |
| 118 | /// \param Method - The method being called, this may be null if synthesizing |
| 119 | /// a property setter or getter. |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 120 | virtual CodeGen::RValue |
Daniel Dunbar | 97db84c | 2008-08-23 03:46:30 +0000 | [diff] [blame] | 121 | GenerateMessageSend(CodeGen::CodeGenFunction &CGF, |
John McCall | 78a1511 | 2010-05-22 01:48:05 +0000 | [diff] [blame] | 122 | ReturnValueSlot ReturnSlot, |
Daniel Dunbar | 4b8c6db | 2008-08-30 05:35:15 +0000 | [diff] [blame] | 123 | QualType ResultType, |
| 124 | Selector Sel, |
Daniel Dunbar | ca8531a | 2008-08-25 08:19:24 +0000 | [diff] [blame] | 125 | llvm::Value *Receiver, |
Fariborz Jahanian | f3648b8 | 2009-05-05 21:36:57 +0000 | [diff] [blame] | 126 | const CallArgList &CallArgs, |
David Chisnall | 01aa467 | 2010-04-28 19:33:36 +0000 | [diff] [blame] | 127 | const ObjCInterfaceDecl *Class = 0, |
Daniel Dunbar | aff9fca | 2009-09-17 04:01:22 +0000 | [diff] [blame] | 128 | const ObjCMethodDecl *Method = 0) = 0; |
Daniel Dunbar | 89da6ad | 2008-08-13 00:59:25 +0000 | [diff] [blame] | 129 | |
Daniel Dunbar | 9299250 | 2008-08-15 22:20:32 +0000 | [diff] [blame] | 130 | /// Generate an Objective-C message send operation to the super |
Daniel Dunbar | ca8531a | 2008-08-25 08:19:24 +0000 | [diff] [blame] | 131 | /// class initiated in a method for Class and with the given Self |
| 132 | /// object. |
Daniel Dunbar | aff9fca | 2009-09-17 04:01:22 +0000 | [diff] [blame] | 133 | /// |
| 134 | /// \param Method - The method being called, this may be null if synthesizing |
| 135 | /// a property setter or getter. |
Daniel Dunbar | 97db84c | 2008-08-23 03:46:30 +0000 | [diff] [blame] | 136 | virtual CodeGen::RValue |
| 137 | GenerateMessageSendSuper(CodeGen::CodeGenFunction &CGF, |
John McCall | 78a1511 | 2010-05-22 01:48:05 +0000 | [diff] [blame] | 138 | ReturnValueSlot ReturnSlot, |
Daniel Dunbar | 4b8c6db | 2008-08-30 05:35:15 +0000 | [diff] [blame] | 139 | QualType ResultType, |
| 140 | Selector Sel, |
Daniel Dunbar | ca8531a | 2008-08-25 08:19:24 +0000 | [diff] [blame] | 141 | const ObjCInterfaceDecl *Class, |
Fariborz Jahanian | bac73ac | 2009-02-28 20:07:56 +0000 | [diff] [blame] | 142 | bool isCategoryImpl, |
Daniel Dunbar | ca8531a | 2008-08-25 08:19:24 +0000 | [diff] [blame] | 143 | llvm::Value *Self, |
Daniel Dunbar | c722b85 | 2008-08-30 03:02:31 +0000 | [diff] [blame] | 144 | bool IsClassMessage, |
Daniel Dunbar | aff9fca | 2009-09-17 04:01:22 +0000 | [diff] [blame] | 145 | const CallArgList &CallArgs, |
| 146 | const ObjCMethodDecl *Method = 0) = 0; |
Daniel Dunbar | 6630e10 | 2008-08-12 05:08:18 +0000 | [diff] [blame] | 147 | |
| 148 | /// Emit the code to return the named protocol as an object, as in a |
| 149 | /// @protocol expression. |
Daniel Dunbar | cb46385 | 2008-11-01 01:53:16 +0000 | [diff] [blame] | 150 | virtual llvm::Value *GenerateProtocolRef(CGBuilderTy &Builder, |
Daniel Dunbar | 9299250 | 2008-08-15 22:20:32 +0000 | [diff] [blame] | 151 | const ObjCProtocolDecl *OPD) = 0; |
Daniel Dunbar | 6630e10 | 2008-08-12 05:08:18 +0000 | [diff] [blame] | 152 | |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 153 | /// Generate the named protocol. Protocols contain method metadata but no |
| 154 | /// implementations. |
Daniel Dunbar | 9299250 | 2008-08-15 22:20:32 +0000 | [diff] [blame] | 155 | virtual void GenerateProtocol(const ObjCProtocolDecl *OPD) = 0; |
Daniel Dunbar | 89da6ad | 2008-08-13 00:59:25 +0000 | [diff] [blame] | 156 | |
Daniel Dunbar | 9299250 | 2008-08-15 22:20:32 +0000 | [diff] [blame] | 157 | /// Generate a function preamble for a method with the specified |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 158 | /// types. |
Daniel Dunbar | 9299250 | 2008-08-15 22:20:32 +0000 | [diff] [blame] | 159 | |
Mike Stump | 18bb928 | 2009-05-16 07:57:57 +0000 | [diff] [blame] | 160 | // FIXME: Current this just generates the Function definition, but really this |
| 161 | // should also be generating the loads of the parameters, as the runtime |
| 162 | // should have full control over how parameters are passed. |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 163 | virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD, |
Fariborz Jahanian | 0196a1c | 2009-01-10 21:06:09 +0000 | [diff] [blame] | 164 | const ObjCContainerDecl *CD) = 0; |
Daniel Dunbar | 89da6ad | 2008-08-13 00:59:25 +0000 | [diff] [blame] | 165 | |
Daniel Dunbar | a91c3e0 | 2008-09-24 03:38:44 +0000 | [diff] [blame] | 166 | /// Return the runtime function for getting properties. |
Chris Lattner | d480892 | 2009-03-22 21:03:39 +0000 | [diff] [blame] | 167 | virtual llvm::Constant *GetPropertyGetFunction() = 0; |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 168 | |
Daniel Dunbar | a91c3e0 | 2008-09-24 03:38:44 +0000 | [diff] [blame] | 169 | /// Return the runtime function for setting properties. |
Chris Lattner | d480892 | 2009-03-22 21:03:39 +0000 | [diff] [blame] | 170 | virtual llvm::Constant *GetPropertySetFunction() = 0; |
Daniel Dunbar | a91c3e0 | 2008-09-24 03:38:44 +0000 | [diff] [blame] | 171 | |
Fariborz Jahanian | 5a8c203 | 2010-04-12 18:18:10 +0000 | [diff] [blame] | 172 | // API for atomic copying of qualified aggregates in setter/getter. |
| 173 | virtual llvm::Constant *GetCopyStructFunction() = 0; |
| 174 | |
Daniel Dunbar | 7c6d3a7 | 2008-08-16 00:25:02 +0000 | [diff] [blame] | 175 | /// GetClass - Return a reference to the class for the given |
| 176 | /// interface decl. |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 177 | virtual llvm::Value *GetClass(CGBuilderTy &Builder, |
Daniel Dunbar | 7c6d3a7 | 2008-08-16 00:25:02 +0000 | [diff] [blame] | 178 | const ObjCInterfaceDecl *OID) = 0; |
Daniel Dunbar | 89da6ad | 2008-08-13 00:59:25 +0000 | [diff] [blame] | 179 | |
Anders Carlsson | 3f35a26 | 2008-08-31 04:05:03 +0000 | [diff] [blame] | 180 | /// EnumerationMutationFunction - Return the function that's called by the |
| 181 | /// compiler when a mutation is detected during foreach iteration. |
Chris Lattner | d480892 | 2009-03-22 21:03:39 +0000 | [diff] [blame] | 182 | virtual llvm::Constant *EnumerationMutationFunction() = 0; |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 183 | |
Fariborz Jahanian | c2ad6dc | 2008-11-21 00:49:24 +0000 | [diff] [blame] | 184 | virtual void EmitTryOrSynchronizedStmt(CodeGen::CodeGenFunction &CGF, |
| 185 | const Stmt &S) = 0; |
Anders Carlsson | 1963b0c | 2008-09-09 10:04:29 +0000 | [diff] [blame] | 186 | virtual void EmitThrowStmt(CodeGen::CodeGenFunction &CGF, |
| 187 | const ObjCAtThrowStmt &S) = 0; |
Daniel Dunbar | be9dae8 | 2009-04-21 00:49:20 +0000 | [diff] [blame] | 188 | virtual llvm::Value *EmitObjCWeakRead(CodeGen::CodeGenFunction &CGF, |
| 189 | llvm::Value *AddrWeakObj) = 0; |
Fariborz Jahanian | 83f45b55 | 2008-11-18 22:37:34 +0000 | [diff] [blame] | 190 | virtual void EmitObjCWeakAssign(CodeGen::CodeGenFunction &CGF, |
| 191 | llvm::Value *src, llvm::Value *dest) = 0; |
Fariborz Jahanian | d7db964 | 2008-11-19 00:59:10 +0000 | [diff] [blame] | 192 | virtual void EmitObjCGlobalAssign(CodeGen::CodeGenFunction &CGF, |
| 193 | llvm::Value *src, llvm::Value *dest) = 0; |
Fariborz Jahanian | e881b53 | 2008-11-20 19:23:36 +0000 | [diff] [blame] | 194 | virtual void EmitObjCIvarAssign(CodeGen::CodeGenFunction &CGF, |
Fariborz Jahanian | 7a95d72 | 2009-09-24 22:25:38 +0000 | [diff] [blame] | 195 | llvm::Value *src, llvm::Value *dest, |
| 196 | llvm::Value *ivarOffset) = 0; |
Fariborz Jahanian | d7db964 | 2008-11-19 00:59:10 +0000 | [diff] [blame] | 197 | virtual void EmitObjCStrongCastAssign(CodeGen::CodeGenFunction &CGF, |
| 198 | llvm::Value *src, llvm::Value *dest) = 0; |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 199 | |
Fariborz Jahanian | 712bfa6 | 2009-02-03 19:03:09 +0000 | [diff] [blame] | 200 | virtual LValue EmitObjCValueForIvar(CodeGen::CodeGenFunction &CGF, |
| 201 | QualType ObjectTy, |
| 202 | llvm::Value *BaseValue, |
| 203 | const ObjCIvarDecl *Ivar, |
Fariborz Jahanian | 712bfa6 | 2009-02-03 19:03:09 +0000 | [diff] [blame] | 204 | unsigned CVRQualifiers) = 0; |
Fariborz Jahanian | 21fc74c | 2009-02-10 19:02:04 +0000 | [diff] [blame] | 205 | virtual llvm::Value *EmitIvarOffset(CodeGen::CodeGenFunction &CGF, |
Daniel Dunbar | 722f424 | 2009-04-22 05:08:15 +0000 | [diff] [blame] | 206 | const ObjCInterfaceDecl *Interface, |
Fariborz Jahanian | 21fc74c | 2009-02-10 19:02:04 +0000 | [diff] [blame] | 207 | const ObjCIvarDecl *Ivar) = 0; |
Fariborz Jahanian | 5f21d2f | 2009-07-08 01:18:33 +0000 | [diff] [blame] | 208 | virtual void EmitGCMemmoveCollectable(CodeGen::CodeGenFunction &CGF, |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 209 | llvm::Value *DestPtr, |
Fariborz Jahanian | 5f21d2f | 2009-07-08 01:18:33 +0000 | [diff] [blame] | 210 | llvm::Value *SrcPtr, |
Fariborz Jahanian | 021510e | 2010-06-15 22:44:06 +0000 | [diff] [blame] | 211 | llvm::Value *Size) = 0; |
Chris Lattner | b7256cd | 2008-03-01 08:50:34 +0000 | [diff] [blame] | 212 | }; |
| 213 | |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 214 | /// Creates an instance of an Objective-C runtime class. |
Chris Lattner | 4bd5596 | 2008-03-30 23:03:07 +0000 | [diff] [blame] | 215 | //TODO: This should include some way of selecting which runtime to target. |
Daniel Dunbar | 303e2c2 | 2008-08-11 02:45:11 +0000 | [diff] [blame] | 216 | CGObjCRuntime *CreateGNUObjCRuntime(CodeGenModule &CGM); |
| 217 | CGObjCRuntime *CreateMacObjCRuntime(CodeGenModule &CGM); |
Fariborz Jahanian | b15a3d5 | 2009-01-22 23:02:58 +0000 | [diff] [blame] | 218 | CGObjCRuntime *CreateMacNonFragileABIObjCRuntime(CodeGenModule &CGM); |
Chris Lattner | b7256cd | 2008-03-01 08:50:34 +0000 | [diff] [blame] | 219 | } |
| 220 | } |
| 221 | #endif |