[clang] [llvm] Added instant events and marking defered templated instantiation. (PR #103039)

via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 30 05:56:59 PDT 2024


================
@@ -104,6 +105,23 @@ struct llvm::TimeTraceProfilerEntry {
   }
 };
 
+struct InProgressEntry {
+  std::unique_ptr<TimeTraceProfilerEntry> Event;
+  std::vector<TimeTraceProfilerEntry> InstantEvents;
+
+  InProgressEntry(TimePointType &&S, TimePointType &&E, std::string &&N,
----------------
ivanaivanovska wrote:

Agree. However, there is no default constructor for TimeTraceProfilerEntry, so without the unique_ptr (which I now removed), this is not possible. Leaving the constructors as they are.

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


More information about the cfe-commits mailing list