[clang] [llvm] Use global TimerGroups for both new pass manager and old pass manager timers (PR #130375)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 10 22:40:39 PDT 2025


================
@@ -71,11 +72,16 @@ class TimePassesHandler {
   bool PerRun;
 
 public:
+  static constexpr StringRef PassGroupName = "pass";
+  static constexpr StringRef AnalysisGroupName = "analysis";
+  static constexpr StringRef PassGroupDesc = "Pass execution timing report";
+  static constexpr StringRef AnalysisGroupDesc =
+      "Analysis execution timing report";
+
   TimePassesHandler();
   TimePassesHandler(bool Enabled, bool PerRun = false);
 
-  /// Destructor handles the print action if it has not been handled before.
-  ~TimePassesHandler() { print(); }
+  ~TimePassesHandler() = default;
----------------
MaskRay wrote:

just delete it.

https://github.com/llvm/llvm-project/pull/130375


More information about the llvm-commits mailing list