This patch implementa objective-c's @compatibilty-alias declaration.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42883 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/Decl.cpp b/AST/Decl.cpp
index 2011779..987e493 100644
--- a/AST/Decl.cpp
+++ b/AST/Decl.cpp
@@ -35,6 +35,7 @@
 static unsigned nIvarDecls = 0;
 static unsigned nObjcImplementationDecls = 0;
 static unsigned nObjcCategoryImpl = 0;
+static unsigned nObjcCompatibleAlias = 0;
 
 static bool StatSwitch = false;
 
@@ -141,6 +142,10 @@
 	  nObjcCategoryImpl, (int)sizeof(ObjcCategoryImplDecl),
 	  int(nObjcCategoryImpl*sizeof(ObjcCategoryImplDecl)));
 
+  fprintf(stderr, "    %d compatibility alias decls, %d each (%d bytes)\n", 
+	  nObjcCompatibleAlias, (int)sizeof(ObjcCompatibleAliasDecl),
+	  int(nObjcCompatibleAlias*sizeof(ObjcCompatibleAliasDecl)));
+  
   fprintf(stderr, "Total bytes = %d\n", 
 	  int(nFuncs*sizeof(FunctionDecl)+nBlockVars*sizeof(BlockVarDecl)+
 	      nFileVars*sizeof(FileVarDecl)+nParmVars*sizeof(ParmVarDecl)+
@@ -207,6 +212,9 @@
     case ObjcCategoryImpl:
       nObjcCategoryImpl++;
       break;
+    case CompatibleAlias:
+      nObjcCompatibleAlias++;
+      break;
   }
 }