diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-02-26 23:17:12 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-02-26 23:17:12 +0000 |
commit | 06dfe8e9c537c3897531c9fc70d5da6192f5aaff (patch) | |
tree | 87edd988957320172c77f856591816f8b89eacfb /llvm/lib/Support/Statistic.cpp | |
parent | 26691d966048b576de9aad15391dbcc540e90ca9 (diff) | |
download | bcm5719-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.cpp | 4 |
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; |