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

Unified Diff: src/IceClFlags.h

Issue 1766233002: Subzero: Fix symbol name mangling. Make flags global. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleanup 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
Index: src/IceClFlags.h
diff --git a/src/IceClFlags.h b/src/IceClFlags.h
index d3e8b26510b512454b8bdd50afa03c7bad7dc18f..d10c8c4d26bfb5c5f0b342e11726053ad196ae8a 100644
--- a/src/IceClFlags.h
+++ b/src/IceClFlags.h
@@ -20,6 +20,21 @@
namespace Ice {
+// TODO(stichnot): Fix the separation between ClFlags and ClFlagsExtra.
+//
+// The original intention was that ClFlags would be the core set of flags for a
+// release build, while ClFlagsExtra had optional flags that would be locked to
+// default values in a release build. However, the division has evolved to be
+// fairly arbitrary.
+//
+// The variable flags in a release (browser) build should be limited to opt
+// level, number of threads, output file, and perhaps input file.
+//
+// The core flags should remain part of the GlobalContext object, but the
+// optional flags might as well be global, i.e. static members of GlobalContext,
John 2016/03/06 22:39:38 If they are global, please make them, uh, global!
Jim Stichnoth 2016/03/07 00:03:10 Do you mean just pull them out of the Ice::GlobalC
John 2016/03/07 16:41:08 Yes, just move it to the Ice namespace. There's ve
+// so that they are easily accessed from anywhere without needing to plumb in
+// the GlobalContext object.
+
class ClFlagsExtra;
/// Define variables which configure translation and related support functions.

Powered by Google App Engine
This is Rietveld 408576698