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

Unified Diff: src/IceClFlags.h

Issue 1848303003: Simplify references to command line flags. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 9 months 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 | « src/IceCfgNode.cpp ('k') | src/IceClFlags.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceClFlags.h
diff --git a/src/IceClFlags.h b/src/IceClFlags.h
index bf51999d2f1be23ea4def3fbc05f8d6a0ccd4bef..0a2fc56dbe0bb15c77b094547d0f013ae1cc8269 100644
--- a/src/IceClFlags.h
+++ b/src/IceClFlags.h
@@ -74,6 +74,9 @@ public:
/// User defined constructor.
ClFlags() { resetClFlags(); }
+ /// The command line flags.
+ static ClFlags Flags;
+
/// \brief Parse commmand line options for Subzero.
///
/// This is done use cl::ParseCommandLineOptions() and the static variables of
@@ -155,6 +158,8 @@ private:
bool GenerateUnitTestMessages;
};
+inline const ClFlags &getFlags() { return ClFlags::Flags; }
+
} // end of namespace Ice
#endif // SUBZERO_SRC_ICECLFLAGS_H
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceClFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698