]> granicus.if.org Git - clang/commitdiff
objective-c modern rewriter. Do not add _class_ro_t.reserved
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 13 Mar 2012 23:48:09 +0000 (23:48 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 13 Mar 2012 23:48:09 +0000 (23:48 +0000)
field. // rdar://11040024

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152685 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/RewriteModernObjC.cpp

index 786139c0358de851e5778fdfc4adc9621f37ef39..ddb8b0b878df48c78d2271f8c02a6b993dfba410 100644 (file)
@@ -5297,7 +5297,8 @@ static void WriteModernMetadataDeclarations(std::string &Result) {
   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 @@ static void Write__class_ro_t_initializer(ASTContext *Context, std::string &Resu
   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";