mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
Support: Add llvm::AreStatisticsEnabled().
llvm-svn: 126558
This commit is contained in:
parent
412ffed4f0
commit
d4a7704765
@ -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
Block a user