[cfe-commits] r152685 - /cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp

Fariborz Jahanian fjahanian at apple.com
Tue Mar 13 16:48:09 PDT 2012


Author: fjahanian
Date: Tue Mar 13 18:48:09 2012
New Revision: 152685

URL: http://llvm.org/viewvc/llvm-project?rev=152685&view=rev
Log:
objective-c modern rewriter. Do not add _class_ro_t.reserved 
field. // rdar://11040024


Modified:
    cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp

Modified: cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp?rev=152685&r1=152684&r2=152685&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp Tue Mar 13 18:48:09 2012
@@ -5297,7 +5297,8 @@
   Result += "\tunsigned int const flags;\n";
   Result += "\tunsigned int instanceStart;\n";
   Result += "\tunsigned int const instanceSize;\n";
-  Result += "\tunsigned int const reserved;  // only when building for 64bit targets\n";
+  // FIXME, Add 'reserved' field in 64bit abi mode!
+  // Result += "\tunsigned int const reserved;
   Result += "\tconst unsigned char * const ivarLayout;\n";
   Result += "\tconst char *const name;\n";
   Result += "\tconst struct _method_list_t * const baseMethods;\n";
@@ -5499,8 +5500,9 @@
   Result += InstanceStart; Result += ", ";
   Result += InstanceSize; Result += ", \n";
   Result += "\t";
+  // FIXME. Initizlize 'reserved' field in 64bit abi mode!
   // uint32_t const reserved; // only when building for 64bit targets
-  Result += "(unsigned int)0, \n\t";
+  // Result += "(unsigned int)0, \n\t";
   // const uint8_t * const ivarLayout;
   Result += "0, \n\t";
   Result += "\""; Result += ClassName; Result += "\",\n\t";





More information about the cfe-commits mailing list