Support: Add llvm::AreStatisticsEnabled().
llvm-svn: 126558
This commit is contained in:
parent
26691d9660
commit
06dfe8e9c5
|
@ -121,6 +121,9 @@ protected:
|
|||
/// \brief Enable the collection and printing of statistics.
|
||||
void EnableStatistics();
|
||||
|
||||
/// \brief Check if statistics are enabled.
|
||||
bool AreStatisticsEnabled();
|
||||
|
||||
/// \brief Print statistics to the file returned by CreateInfoOutputFile().
|
||||
void PrintStatistics();
|
||||
|
||||
|
|
|
@ -101,6 +101,10 @@ void llvm::EnableStatistics() {
|
|||
Enabled.setValue(true);
|
||||
}
|
||||
|
||||
bool llvm::AreStatisticsEnabled() {
|
||||
return Enabled;
|
||||
}
|
||||
|
||||
void llvm::PrintStatistics(raw_ostream &OS) {
|
||||
StatisticInfo &Stats = *StatInfo;
|
||||
|
||||
|
|
Loading…
Reference in New Issue