llvm.org GIT mirror llvm / 0aa00f9
Support: Add llvm::AreStatisticsEnabled(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126558 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 9 years ago
2 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
120120 /// \brief Enable the collection and printing of statistics.
121121 void EnableStatistics();
122122
123 /// \brief Check if statistics are enabled.
124 bool AreStatisticsEnabled();
125
123126 /// \brief Print statistics to the file returned by CreateInfoOutputFile().
124127 void PrintStatistics();
125128
100100 Enabled.setValue(true);
101101 }
102102
103 bool llvm::AreStatisticsEnabled() {
104 return Enabled;
105 }
106
103107 void llvm::PrintStatistics(raw_ostream &OS) {
104108 StatisticInfo &Stats = *StatInfo;
105109