Support: Add llvm::AreStatisticsEnabled().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126558 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2011-02-26 23:17:12 +00:00
parent 7466678003
commit 0aa00f9110
2 changed files with 7 additions and 0 deletions

View File

@ -101,6 +101,10 @@ void llvm::EnableStatistics() {
Enabled.setValue(true);
}
bool llvm::AreStatisticsEnabled() {
return Enabled;
}
void llvm::PrintStatistics(raw_ostream &OS) {
StatisticInfo &Stats = *StatInfo;