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

Side by Side Diff: src/IceClFlags.h

Issue 1903553004: Subzero: Allow overriding command-line args from the browser. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « src/IceBrowserCompileServer.cpp ('k') | src/IceClFlags.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceClFlags.h - Cl Flags for translation ------*- C++ -*-===// 1 //===- subzero/src/IceClFlags.h - Cl Flags for translation ------*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 /// User defined constructor. 75 /// User defined constructor.
76 ClFlags() { resetClFlags(); } 76 ClFlags() { resetClFlags(); }
77 77
78 /// The command line flags. 78 /// The command line flags.
79 static ClFlags Flags; 79 static ClFlags Flags;
80 80
81 /// \brief Parse commmand line options for Subzero. 81 /// \brief Parse commmand line options for Subzero.
82 /// 82 ///
83 /// This is done use cl::ParseCommandLineOptions() and the static variables of 83 /// This is done use cl::ParseCommandLineOptions() and the static variables of
84 /// type cl::opt defined in IceClFlags.cpp 84 /// type cl::opt defined in IceClFlags.cpp
85 static void parseFlags(int argc, char *argv[]); 85 static void parseFlags(int argc, const char *const *argv);
86 86
87 /// Reset all configuration options to their nominal values. 87 /// Reset all configuration options to their nominal values.
88 void resetClFlags(); 88 void resetClFlags();
89 89
90 /// \brief Retrieve the configuration option state 90 /// \brief Retrieve the configuration option state
91 /// 91 ///
92 /// This is defined by static variables 92 /// This is defined by static variables
93 /// anonymous_namespace{IceClFlags.cpp}::AllowErrorRecoveryObj, 93 /// anonymous_namespace{IceClFlags.cpp}::AllowErrorRecoveryObj,
94 /// anonymous_namespace{IceClFlags.cpp}::AllowIacaMarksObj, 94 /// anonymous_namespace{IceClFlags.cpp}::AllowIacaMarksObj,
95 /// ... 95 /// ...
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 RangeSpec TimingFocus; 181 RangeSpec TimingFocus;
182 RangeSpec TranslateOnly; 182 RangeSpec TranslateOnly;
183 RangeSpec VerboseFocus; 183 RangeSpec VerboseFocus;
184 }; 184 };
185 185
186 inline const ClFlags &getFlags() { return ClFlags::Flags; } 186 inline const ClFlags &getFlags() { return ClFlags::Flags; }
187 187
188 } // end of namespace Ice 188 } // end of namespace Ice
189 189
190 #endif // SUBZERO_SRC_ICECLFLAGS_H 190 #endif // SUBZERO_SRC_ICECLFLAGS_H
OLDNEW
« no previous file with comments | « src/IceBrowserCompileServer.cpp ('k') | src/IceClFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698