summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Statistic.cpp
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
commit06dfe8e9c537c3897531c9fc70d5da6192f5aaff (patch)
tree87edd988957320172c77f856591816f8b89eacfb /llvm/lib/Support/Statistic.cpp
parent26691d966048b576de9aad15391dbcc540e90ca9 (diff)
downloadbcm5719-llvm-06dfe8e9c537c3897531c9fc70d5da6192f5aaff.tar.gz
bcm5719-llvm-06dfe8e9c537c3897531c9fc70d5da6192f5aaff.zip
Support: Add llvm::AreStatisticsEnabled().
llvm-svn: 126558
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
-rw-r--r--llvm/lib/Support/Statistic.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp
index f0ed62690fd..1e733d92e61 100644
--- a/llvm/lib/Support/Statistic.cpp
+++ b/llvm/lib/Support/Statistic.cpp
@@ -101,6 +101,10 @@ void llvm::EnableStatistics() {
Enabled.setValue(true);
}
+bool llvm::AreStatisticsEnabled() {
+ return Enabled;
+}
+
void llvm::PrintStatistics(raw_ostream &OS) {
StatisticInfo &Stats = *StatInfo;
OpenPOWER on IntegriCloud