Index: src/IceConverter.cpp |
diff --git a/src/IceConverter.cpp b/src/IceConverter.cpp |
index e69fd7a3a15106467839b9f9a08c204e128f079c..2440353587367f6d4f821e7c7bea4da4e059bf87 100644 |
--- a/src/IceConverter.cpp |
+++ b/src/IceConverter.cpp |
@@ -913,21 +913,12 @@ void Converter::convertGlobals(Module *Mod) { |
} |
void Converter::convertFunctions() { |
- const TimerStackIdT StackID = GlobalContext::TSK_Funcs; |
for (const Function &I : *Mod) { |
if (I.empty()) |
continue; |
- |
- TimerIdT TimerID = 0; |
- const bool TimeThisFunction = Ctx->getFlags().getTimeEachFunction(); |
- if (TimeThisFunction) { |
- TimerID = Ctx->getTimerID(StackID, I.getName()); |
- Ctx->pushTimer(TimerID, StackID); |
- } |
+ TimerMarker _(Ctx, I.getName()); |
LLVM2ICEFunctionConverter FunctionConverter(*this); |
FunctionConverter.convertFunction(&I); |
- if (TimeThisFunction) |
- Ctx->popTimer(TimerID, StackID); |
} |
} |