diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-03-13 23:48:09 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-03-13 23:48:09 +0000 |
commit | 9648a9ee3b4047d319b9ec5e3fd84ed5fe04235c (patch) | |
tree | 0415882ed6b0fe6b865ae5a03b5d1fd0c68b663c | |
parent | 4574c3d75edb0a496d36246b760094f3acf1ba27 (diff) |
objective-c modern rewriter. Do not add _class_ro_t.reserved
field. // rdar://11040024
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152685 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Rewrite/RewriteModernObjC.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Rewrite/RewriteModernObjC.cpp b/lib/Rewrite/RewriteModernObjC.cpp index 786139c035..ddb8b0b878 100644 --- a/lib/Rewrite/RewriteModernObjC.cpp +++ b/lib/Rewrite/RewriteModernObjC.cpp @@ -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"; |