File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ class TimePassesHandler {
4646 // / to all the instance of a given pass) + sequential invocation counter.
4747 using PassInvocationID = std::pair<StringRef, unsigned >;
4848
49+ // / Groups of timers for passes and analyses.
50+ TimerGroup &PassTG =
51+ NamedRegionTimer::getNamedTimerGroup (PassGroupName, PassGroupDesc);
52+ TimerGroup &AnalysisTG = NamedRegionTimer::getNamedTimerGroup(
53+ AnalysisGroupName, AnalysisGroupDesc);
54+
4955 using TimerVector = llvm::SmallVector<Timer *, 4 >;
5056 // / Map of timers for pass invocations
5157 StringMap<TimerVector> TimingData;
@@ -65,11 +71,6 @@ class TimePassesHandler {
6571 bool Enabled;
6672 bool PerRun;
6773
68- TimerGroup &PassTG =
69- NamedRegionTimer::getNamedTimerGroup (PassGroupName, PassGroupDesc);
70- TimerGroup &AnalysisTG = NamedRegionTimer::getNamedTimerGroup(
71- AnalysisGroupName, AnalysisGroupDesc);
72-
7374public:
7475 static constexpr StringRef PassGroupName = " pass" ;
7576 static constexpr StringRef AnalysisGroupName = " analysis" ;
You can’t perform that action at this time.
0 commit comments