[cfe-commits] r62852 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp

Fariborz Jahanian fjahanian at apple.com
Fri Jan 23 09:41:23 PST 2009


Author: fjahanian
Date: Fri Jan 23 11:41:22 2009
New Revision: 62852

URL: http://llvm.org/viewvc/llvm-project?rev=62852&view=rev
Log:
Another missing LLVM type for objc2's new abi defined.


Modified:
    cfe/trunk/lib/CodeGen/CGObjCMac.cpp

Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=62852&r1=62851&r2=62852&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Fri Jan 23 11:41:22 2009
@@ -2960,7 +2960,17 @@
   //   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::CGObjCRuntime *
 CodeGen::CreateMacNonFragileABIObjCRuntime(CodeGen::CodeGenModule &CGM) {
-  return 0;
- // return new CGObjCNonFragileABIMac(CGM);
+  return new CGObjCNonFragileABIMac(CGM);
 }





More information about the cfe-commits mailing list