From: Daniel Dunbar Date: Fri, 26 Sep 2008 03:23:00 +0000 (+0000) Subject: Add # of block pointer types to -print-stats. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=248e1c01d3c9de4b62bdd291e0b99a91552cc487;p=clang Add # of block pointer types to -print-stats. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56638 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index b0ce9eb26d..feb1bad4f9 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -54,7 +54,7 @@ void ASTContext::PrintStats() const { fprintf(stderr, "*** AST Context Stats:\n"); fprintf(stderr, " %d types total.\n", (int)Types.size()); unsigned NumBuiltin = 0, NumPointer = 0, NumArray = 0, NumFunctionP = 0; - unsigned NumVector = 0, NumComplex = 0; + unsigned NumVector = 0, NumComplex = 0, NumBlockPointer = 0; unsigned NumFunctionNP = 0, NumTypeName = 0, NumTagged = 0, NumReference = 0; unsigned NumTagStruct = 0, NumTagUnion = 0, NumTagEnum = 0, NumTagClass = 0; @@ -68,6 +68,8 @@ void ASTContext::PrintStats() const { ++NumBuiltin; else if (isa(T)) ++NumPointer; + else if (isa(T)) + ++NumBlockPointer; else if (isa(T)) ++NumReference; else if (isa(T)) @@ -109,6 +111,7 @@ void ASTContext::PrintStats() const { fprintf(stderr, " %d builtin types\n", NumBuiltin); fprintf(stderr, " %d pointer types\n", NumPointer); + fprintf(stderr, " %d block pointer types\n", NumBlockPointer); fprintf(stderr, " %d reference types\n", NumReference); fprintf(stderr, " %d complex types\n", NumComplex); fprintf(stderr, " %d array types\n", NumArray);