commit | 0aa00f91100fb031cd9cde2562cdc029f4fb26d5 | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Sat Feb 26 23:17:12 2011 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Sat Feb 26 23:17:12 2011 +0000 |
tree | 10180d93d77e48333b181f364801bb87422c2235 | |
parent | 7466678003f38f985d5b2dffd0917643137b11cf [diff] [blame] |
Support: Add llvm::AreStatisticsEnabled(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126558 91177308-0d34-0410-b5e6-96231b3b80d8
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 @@ Enabled.setValue(true); } +bool llvm::AreStatisticsEnabled() { + return Enabled; +} + void llvm::PrintStatistics(raw_ostream &OS) { StatisticInfo &Stats = *StatInfo;