r211438 - [PCH] Remove the BackingIvarReferencedInAccessor field from DECL_OBJC_IVAR abbreviation record.

Argyrios Kyrtzidis akyrtzi at gmail.com
Sat Jun 21 11:16:41 PDT 2014


Author: akirtzidis
Date: Sat Jun 21 13:16:40 2014
New Revision: 211438

URL: http://llvm.org/viewvc/llvm-project?rev=211438&view=rev
Log:
[PCH] Remove the BackingIvarReferencedInAccessor field from DECL_OBJC_IVAR abbreviation record.

Patch by Yiding Jia!

Added:
    cfe/trunk/test/Index/index-pch-objc.m
Modified:
    cfe/trunk/lib/Serialization/ASTWriterDecl.cpp

Modified: cfe/trunk/lib/Serialization/ASTWriterDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriterDecl.cpp?rev=211438&r1=211437&r2=211438&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriterDecl.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriterDecl.cpp Sat Jun 21 13:16:40 2014
@@ -1515,8 +1515,6 @@ void ASTWriter::WriteDeclsBlockAbbrevs()
   // ObjC Ivar
   Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // getAccessControl
   Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // getSynthesize
-  // getBackingIvarReferencedInAccessor
-  Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6));
   // Type Source Info
   Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6));
   Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Array));

Added: cfe/trunk/test/Index/index-pch-objc.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/index-pch-objc.m?rev=211438&view=auto
==============================================================================
--- cfe/trunk/test/Index/index-pch-objc.m (added)
+++ cfe/trunk/test/Index/index-pch-objc.m Sat Jun 21 13:16:40 2014
@@ -0,0 +1,10 @@
+// RUN: c-index-test -write-pch %t.pch %s
+// RUN: env LIBCLANG_NOTHREADS=1 c-index-test -index-tu %t.pch | FileCheck %s
+
+ at interface SomeClass
+ at property (retain) id foo;
+ at end
+ at implementation SomeClass
+ at end
+
+// CHECK: [indexDeclaration]: kind: objc-ivar | name: _foo





More information about the cfe-commits mailing list