diff options
author | Daniel Dunbar <daniel@zuster.org> | 2012-03-05 21:42:49 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2012-03-05 21:42:49 +0000 |
commit | 6290557872ca8875d93d48307a45c7173e94ca74 (patch) | |
tree | a979025231a455db5d6b29abd4ab82bfd42703ca /clang/lib/AST/Stmt.cpp | |
parent | c71bf4739a212d2cc07f380915f5d6d210523059 (diff) | |
download | bcm5719-llvm-6290557872ca8875d93d48307a45c7173e94ca74.tar.gz bcm5719-llvm-6290557872ca8875d93d48307a45c7173e94ca74.zip |
AST/stats: Don't effectively use an out-of-line function to return a static
bool. Ugh.
llvm-svn: 152062
Diffstat (limited to 'clang/lib/AST/Stmt.cpp')
-rw-r--r-- | clang/lib/AST/Stmt.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index 8b2e35376bd..0deaaa83bad 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp @@ -78,11 +78,9 @@ void Stmt::addStmtClass(StmtClass s) { ++getStmtInfoTableEntry(s).Counter; } -static bool StatSwitch = false; - -bool Stmt::CollectingStats(bool Enable) { - if (Enable) StatSwitch = true; - return StatSwitch; +bool Stmt::StatisticsEnabled = false; +void Stmt::EnableStatistics() { + StatisticsEnabled = true; } Stmt *Stmt::IgnoreImplicit() { |