summaryrefslogtreecommitdiffstats
path: root/lib/Parse
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-03-05 21:42:49 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-03-05 21:42:49 +0000
commit02892a65b18875a04c7ed5eadb3a13be801ab477 (patch)
tree2039a115887a751e12e83cf7229af194c4017e21 /lib/Parse
parent7034fb6c7be710883a970f82cb2da97bf1cf5cda (diff)
AST/stats: Don't effectively use an out-of-line function to return a static
bool. Ugh. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse')
-rw-r--r--lib/Parse/ParseAST.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Parse/ParseAST.cpp b/lib/Parse/ParseAST.cpp
index 7e087ef7ea..236689184d 100644
--- a/lib/Parse/ParseAST.cpp
+++ b/lib/Parse/ParseAST.cpp
@@ -53,8 +53,8 @@ void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer,
void clang::ParseAST(Sema &S, bool PrintStats) {
// Collect global stats on Decls/Stmts (until we have a module streamer).
if (PrintStats) {
- Decl::CollectingStats(true);
- Stmt::CollectingStats(true);
+ Decl::EnableStatistics();
+ Stmt::EnableStatistics();
}
// Also turn on collection of stats inside of the Sema object.