summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/Statistic.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-02-26 23:17:12 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-02-26 23:17:12 +0000
commit0aa00f91100fb031cd9cde2562cdc029f4fb26d5 (patch)
tree10180d93d77e48333b181f364801bb87422c2235 /include/llvm/ADT/Statistic.h
parent7466678003f38f985d5b2dffd0917643137b11cf (diff)
downloadllvm-0aa00f91100fb031cd9cde2562cdc029f4fb26d5.tar.gz
llvm-0aa00f91100fb031cd9cde2562cdc029f4fb26d5.tar.bz2
llvm-0aa00f91100fb031cd9cde2562cdc029f4fb26d5.tar.xz
Support: Add llvm::AreStatisticsEnabled().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/Statistic.h')
-rw-r--r--include/llvm/ADT/Statistic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/ADT/Statistic.h b/include/llvm/ADT/Statistic.h
index f137ea21d0..fda99c6edb 100644
--- a/include/llvm/ADT/Statistic.h
+++ b/include/llvm/ADT/Statistic.h
@@ -121,6 +121,9 @@ protected:
/// \brief Enable the collection and printing of statistics.
void EnableStatistics();
+/// \brief Check if statistics are enabled.
+bool AreStatisticsEnabled();
+
/// \brief Print statistics to the file returned by CreateInfoOutputFile().
void PrintStatistics();