diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-01-23 17:41:22 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-01-23 17:41:22 +0000 |
| commit | 5a63e4cd53330f605e678df608e1af016587883c (patch) | |
| tree | df0cc3846114811ae101aa1db3e19b3875568e5a /clang/lib | |
| parent | 033d1257ca0f6ca3d5095c139d4d34ad34f4cf91 (diff) | |
| download | bcm5719-llvm-5a63e4cd53330f605e678df608e1af016587883c.tar.gz bcm5719-llvm-5a63e4cd53330f605e678df608e1af016587883c.zip | |
Another missing LLVM type for objc2's new abi defined.
llvm-svn: 62852
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 9d106816d02..eb811abd349 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -2960,7 +2960,17 @@ ObjCNonFragileABITypesHelper::ObjCNonFragileABITypesHelper(CodeGen::CodeGenModul // const struct _method_list_t * const class_methods; // const struct _protocol_list_t * const protocols; // const struct _prop_list_t * const properties; - // } + // } + CategorynfABITy = llvm::StructType::get(Int8PtrTy, + llvm::PointerType::getUnqual( + ClassnfABITy), + MethodListnfABIPtrTy, + MethodListnfABIPtrTy, + ProtocolListnfABIPtrTy, + PropertyListPtrTy, + NULL); + CGM.getModule().addTypeName("struct._category_t", CategorynfABITy); + } /* *** */ @@ -2972,6 +2982,5 @@ CodeGen::CreateMacObjCRuntime(CodeGen::CodeGenModule &CGM) { CodeGen::CGObjCRuntime * CodeGen::CreateMacNonFragileABIObjCRuntime(CodeGen::CodeGenModule &CGM) { - return 0; - // return new CGObjCNonFragileABIMac(CGM); + return new CGObjCNonFragileABIMac(CGM); } |

