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

Unified Diff: src/IceClFlags.h

Issue 1091023002: Fix locking for printing error messages. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceClFlags.cpp » ('j') | src/PNaClTranslator.cpp » ('J')
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 076200266b581fcc67132fe020222fb05df9d397..c89e6959e62d9e30c2436b46f530c29486901bce 100644
--- a/src/IceClFlags.h
+++ b/src/IceClFlags.h
@@ -26,27 +26,10 @@ class ClFlags {
ClFlags &operator=(const ClFlags &) = delete;
public:
- ClFlags()
- : // bool fields.
- AllowErrorRecovery(false),
- AllowUninitializedGlobals(false), DataSections(false),
- DecorateAsm(false), DisableInternal(false), DisableIRGeneration(false),
- DisableTranslation(false), DumpStats(false), FunctionSections(false),
- GenerateUnitTestMessages(false), PhiEdgeSplit(false),
- RandomNopInsertion(false), RandomRegAlloc(false),
- SubzeroTimingEnabled(false), TimeEachFunction(false),
- UseSandboxing(false),
- // Enum and integer fields.
- Opt(Opt_m1), OutFileType(FT_Iasm), RandomMaxNopsPerInstruction(0),
- RandomNopProbabilityAsPercentage(0), TArch(TargetArch_NUM),
- VMask(IceV_None),
- // IceString fields.
- DefaultFunctionPrefix(""), DefaultGlobalPrefix(""), TestPrefix(""),
- TimingFocusOn(""), TranslateOnly(""), VerboseFocusOn(""),
- // size_t and 64-bit fields.
- NumTranslationThreads(0), RandomSeed(0) {}
+ ClFlags() { resetClFlags(*this); }
static void parseFlags(int argc, char *argv[]);
+ static void resetClFlags(ClFlags &OutFlags);
static void getParsedClFlags(ClFlags &OutFlags);
static void getParsedClFlagsExtra(ClFlagsExtra &OutFlagsExtra);
« no previous file with comments | « no previous file | src/IceClFlags.cpp » ('j') | src/PNaClTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698