Index: src/PNaClTranslator.cpp |
diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp |
index b74de0a999f908813535bfab8189e582ed05557f..1609410177005b89469794313a125a37c6f414fb 100644 |
--- a/src/PNaClTranslator.cpp |
+++ b/src/PNaClTranslator.cpp |
@@ -1112,7 +1112,7 @@ public: |
CachedNumGlobalValueIDs(Context->getNumGlobalIDs()), |
NextLocalInstIndex(Context->getNumGlobalIDs()), |
InstIsTerminating(false) { |
- if (getFlags().TimeEachFunction) |
+ if (ALLOW_DUMP && getFlags().TimeEachFunction) |
getTranslator().getContext()->pushTimer( |
getTranslator().getContext()->getTimerID( |
Ice::GlobalContext::TSK_Funcs, FuncDecl->getName()), |
@@ -1210,7 +1210,7 @@ private: |
static const uint64_t AlignPowerLimit = 29; |
void popTimerIfTimingEachFunction() const { |
- if (getFlags().TimeEachFunction) { |
+ if (ALLOW_DUMP && getFlags().TimeEachFunction) { |
getTranslator().getContext()->popTimer( |
getTranslator().getContext()->getTimerID( |
Ice::GlobalContext::TSK_Funcs, Func->getFunctionName()), |