Patch for objc2's property ASTs, as well as pretty-priting the ASTs.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43778 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/Decl.cpp b/AST/Decl.cpp
index 5187982..3cfe4ae 100644
--- a/AST/Decl.cpp
+++ b/AST/Decl.cpp
@@ -36,6 +36,7 @@
 static unsigned nObjcImplementationDecls = 0;
 static unsigned nObjcCategoryImpl = 0;
 static unsigned nObjcCompatibleAlias = 0;
+static unsigned nObjcPropertyDecl = 0;
 
 static bool StatSwitch = false;
 
@@ -146,6 +147,10 @@
 	  nObjcCompatibleAlias, (int)sizeof(ObjcCompatibleAliasDecl),
 	  int(nObjcCompatibleAlias*sizeof(ObjcCompatibleAliasDecl)));
   
+  fprintf(stderr, "    %d property decls, %d each (%d bytes)\n", 
+	  nObjcPropertyDecl, (int)sizeof(ObjcPropertyDecl),
+	  int(nObjcPropertyDecl*sizeof(ObjcPropertyDecl)));
+  
   fprintf(stderr, "Total bytes = %d\n", 
 	  int(nFuncs*sizeof(FunctionDecl)+nBlockVars*sizeof(BlockVarDecl)+
 	      nFileVars*sizeof(FileVarDecl)+nParmVars*sizeof(ParmVarDecl)+
@@ -215,6 +220,9 @@
     case CompatibleAlias:
       nObjcCompatibleAlias++;
       break;
+    case PropertyDecl:
+      nObjcPropertyDecl++;
+      break;
   }
 }