[cfe-commits] r44919 - in /cfe/trunk: AST/ASTContext.cpp test/Sema/carbon.c test/Sema/cocoa.m
Chris Lattner
sabre at nondot.org
Tue Dec 11 22:43:06 PST 2007
Author: lattner
Date: Wed Dec 12 00:43:05 2007
New Revision: 44919
URL: http://llvm.org/viewvc/llvm-project?rev=44919&view=rev
Log:
Unbreak -stats on cocoa.h
Modified:
cfe/trunk/AST/ASTContext.cpp
cfe/trunk/test/Sema/carbon.c
cfe/trunk/test/Sema/cocoa.m
Modified: cfe/trunk/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/ASTContext.cpp?rev=44919&r1=44918&r2=44919&view=diff
==============================================================================
--- cfe/trunk/AST/ASTContext.cpp (original)
+++ cfe/trunk/AST/ASTContext.cpp Wed Dec 12 00:43:05 2007
@@ -48,7 +48,7 @@
unsigned NumFunctionNP = 0, NumTypeName = 0, NumTagged = 0, NumReference = 0;
unsigned NumTagStruct = 0, NumTagUnion = 0, NumTagEnum = 0, NumTagClass = 0;
- unsigned NumObjcInterfaces = 0;
+ unsigned NumObjcInterfaces = 0, NumObjcQualifiedInterfaces = 0;
for (unsigned i = 0, e = Types.size(); i != e; ++i) {
Type *T = Types[i];
@@ -81,7 +81,10 @@
}
} else if (isa<ObjcInterfaceType>(T))
++NumObjcInterfaces;
+ else if (isa<ObjcQualifiedInterfaceType>(T))
+ ++NumObjcQualifiedInterfaces;
else {
+ QualType(T, 0).dump();
assert(0 && "Unknown type!");
}
}
@@ -101,6 +104,8 @@
fprintf(stderr, " %d class types\n", NumTagClass);
fprintf(stderr, " %d enum types\n", NumTagEnum);
fprintf(stderr, " %d interface types\n", NumObjcInterfaces);
+ fprintf(stderr, " %d protocol qualified interface types\n",
+ NumObjcQualifiedInterfaces);
fprintf(stderr, "Total bytes = %d\n", int(NumBuiltin*sizeof(BuiltinType)+
NumPointer*sizeof(PointerType)+NumArray*sizeof(ArrayType)+
NumComplex*sizeof(ComplexType)+NumVector*sizeof(VectorType)+
Modified: cfe/trunk/test/Sema/carbon.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/carbon.c?rev=44919&r1=44918&r2=44919&view=diff
==============================================================================
--- cfe/trunk/test/Sema/carbon.c (original)
+++ cfe/trunk/test/Sema/carbon.c Wed Dec 12 00:43:05 2007
@@ -1,4 +1,4 @@
-// RUN: clang %s -fsyntax-only
+// RUN: clang %s -fsyntax-only -stats
#ifdef __APPLE__
#include <Carbon/Carbon.h>
#endif
Modified: cfe/trunk/test/Sema/cocoa.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/cocoa.m?rev=44919&r1=44918&r2=44919&view=diff
==============================================================================
--- cfe/trunk/test/Sema/cocoa.m (original)
+++ cfe/trunk/test/Sema/cocoa.m Wed Dec 12 00:43:05 2007
@@ -1,4 +1,4 @@
-// RUN: clang %s
+// RUN: clang %s -stats
#ifdef __APPLE__
#include <Cocoa/Cocoa.h>
#endif
More information about the cfe-commits
mailing list