From 06dfe8e9c537c3897531c9fc70d5da6192f5aaff Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 26 Feb 2011 23:17:12 +0000 Subject: Support: Add llvm::AreStatisticsEnabled(). llvm-svn: 126558 --- llvm/lib/Support/Statistic.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/Support/Statistic.cpp') 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; -- cgit v1.2.3