From 0aa00f91100fb031cd9cde2562cdc029f4fb26d5 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 26 Feb 2011 23:17:12 +0000 Subject: Support: Add llvm::AreStatisticsEnabled(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126558 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Statistic.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Support/Statistic.cpp') diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp index f0ed62690f..1e733d92e6 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; -- cgit v1.2.3-18-g5258