From e3b557809604d036af6e00c60f012c2025b59a5e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 11 Feb 2023 13:38:04 +0100 Subject: Vendor import of llvm-project main llvmorg-16-init-18548-gb0daacf58f41, the last commit before the upstream release/17.x branch was created. --- llvm/lib/Support/Statistic.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Support/Statistic.cpp') diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp index ec12118650c1..24ef3e9abaeb 100644 --- a/llvm/lib/Support/Statistic.cpp +++ b/llvm/lib/Support/Statistic.cpp @@ -120,8 +120,9 @@ void TrackingStatistic::RegisterStatistic() { } StatisticInfo::StatisticInfo() { - // Ensure timergroup lists are created first so they are destructed after us. - TimerGroup::ConstructTimerLists(); + // Ensure that necessary timer global objects are created first so they are + // destructed after us. + TimerGroup::constructForStatistics(); } // Print information when destroyed, iff command line option is specified. @@ -253,7 +254,7 @@ void llvm::PrintStatistics() { #endif } -const std::vector> llvm::GetStatistics() { +std::vector> llvm::GetStatistics() { sys::SmartScopedLock Reader(*StatLock); std::vector> ReturnStats; -- cgit v1.2.3