Subzero: Add "--verbose=status" option.
This just prints the function being translated, once per function. This is useful if there is a crash or fatal error somewhere, and you want to quickly discover which function to set -verbose-focus on.
Also, fixes some warnings/errors in the MINIMAL build.
BUG= none
R=kschimpf@google.com
Review URL: https://codereview.chromium.org/1439983002 .
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index 3211c30..9bc1ba5 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -181,6 +181,8 @@
FunctionTimer.reset(new TimerMarker(
getContext()->getTimerID(GlobalContext::TSK_Funcs, Name),
getContext(), GlobalContext::TSK_Funcs));
+ if (isVerbose(IceV_Status))
+ getContext()->getStrDump() << ">>>Translating " << Name << "\n";
}
TimerMarker T(TimerStack::TT_translate, this);