Index: src/IceTargetLoweringX8632.cpp |
diff --git a/src/IceTargetLoweringX8632.cpp b/src/IceTargetLoweringX8632.cpp |
index 3217141eeee52190935fd2e6ece84a2abe2b8faf..abf46769721d88871b37639f665986694e629a8e 100644 |
--- a/src/IceTargetLoweringX8632.cpp |
+++ b/src/IceTargetLoweringX8632.cpp |
@@ -313,9 +313,8 @@ TargetX8632::TargetX8632(Cfg *Func) |
} |
void TargetX8632::translateO2() { |
- GlobalContext *Context = Func->getContext(); |
static TimerIdT IDO2 = GlobalContext::getTimerID("O2"); |
- TimerMarker T(IDO2, Context); |
+ TimerMarker T(IDO2, Func); |
// Lower Phi instructions. |
Func->placePhiLoads(); |
@@ -400,9 +399,8 @@ void TargetX8632::translateO2() { |
} |
void TargetX8632::translateOm1() { |
- GlobalContext *Context = Func->getContext(); |
static TimerIdT IDOm1 = GlobalContext::getTimerID("Om1"); |
- TimerMarker T(IDOm1, Context); |
+ TimerMarker T(IDOm1, Func); |
Func->placePhiLoads(); |
if (Func->hasError()) |
return; |
@@ -4306,7 +4304,7 @@ void TargetX8632::postLower() { |
if (Ctx->getOptLevel() != Opt_m1) |
return; |
static TimerIdT IDpostLower = GlobalContext::getTimerID("postLower"); |
- TimerMarker T(IDpostLower, Ctx); |
+ TimerMarker T(IDpostLower, Func); |
// TODO: Avoid recomputing WhiteList every instruction. |
RegSetMask RegInclude = RegSet_All; |
RegSetMask RegExclude = RegSet_StackPointer; |