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 | 0aa00f91100fb031cd9cde2562cdc029f4fb26d5 (patch) | |
tree | 10180d93d77e48333b181f364801bb87422c2235 /lib/Support | |
parent | 7466678003f38f985d5b2dffd0917643137b11cf (diff) | |
download | external_llvm-0aa00f91100fb031cd9cde2562cdc029f4fb26d5.zip external_llvm-0aa00f91100fb031cd9cde2562cdc029f4fb26d5.tar.gz external_llvm-0aa00f91100fb031cd9cde2562cdc029f4fb26d5.tar.bz2 |
Support: Add llvm::AreStatisticsEnabled().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/Statistic.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp index f0ed626..1e733d9 100644 --- a/lib/Support/Statistic.cpp +++ b/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; |