aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-01-23 17:41:22 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-01-23 17:41:22 +0000
commit45c2ba0c13f353a8bab6cc01b30b3a13f3404c1e (patch)
treed07e65cd9aee64f36c1d319abd64a380d1970ebb /lib/CodeGen/CGObjCMac.cpp
parentf6c717c3dca839dcd189b4a6fa46c8fe7a8bec1d (diff)
Another missing LLVM type for objc2's new abi defined.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--lib/CodeGen/CGObjCMac.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp
index 9d106816d0..eb811abd34 100644
--- a/lib/CodeGen/CGObjCMac.cpp
+++ b/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);
}