Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: src/IceCfg.h

Issue 1439983002: Subzero: Add "--verbose=status" option. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.h
diff --git a/src/IceCfg.h b/src/IceCfg.h
index 92a16809787878c0ff82fc75c77211a926f2e21e..b39673bc111b8e90b332814538d589b7f4786550 100644
--- a/src/IceCfg.h
+++ b/src/IceCfg.h
@@ -50,10 +50,15 @@ public:
GlobalContext *getContext() const { return Ctx; }
uint32_t getSequenceNumber() const { return SequenceNumber; }
+ static constexpr VerboseMask defaultVerboseMask() {
+ return IceV_All & ~IceV_Status;
+ }
/// Returns true if any of the specified options in the verbose mask are set.
/// If the argument is omitted, it checks if any verbose options at all are
/// set.
- bool isVerbose(VerboseMask Mask = IceV_All) const { return VMask & Mask; }
+ bool isVerbose(VerboseMask Mask = defaultVerboseMask()) const {
+ return VMask & Mask;
+ }
void setVerbose(VerboseMask Mask) { VMask = Mask; }
/// \name Manage the name and return type of the function being translated.
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698