 Chromium Code Reviews
 Chromium Code Reviews Issue 1387963002:
  Make sure that all globals are internal, except for "start" functions.  (Closed) 
  Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
    
  
    Issue 1387963002:
  Make sure that all globals are internal, except for "start" functions.  (Closed) 
  Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master| OLD | NEW | 
|---|---|
| 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 21 matching lines...) Expand all Loading... | |
| 32 static void parseFlags(int argc, char *argv[]); | 32 static void parseFlags(int argc, char *argv[]); | 
| 33 static void resetClFlags(ClFlags &OutFlags); | 33 static void resetClFlags(ClFlags &OutFlags); | 
| 34 static void getParsedClFlags(ClFlags &OutFlags); | 34 static void getParsedClFlags(ClFlags &OutFlags); | 
| 35 static void getParsedClFlagsExtra(ClFlagsExtra &OutFlagsExtra); | 35 static void getParsedClFlagsExtra(ClFlagsExtra &OutFlagsExtra); | 
| 36 | 36 | 
| 37 // bool accessors. | 37 // bool accessors. | 
| 38 | 38 | 
| 39 bool getAllowErrorRecovery() const { return AllowErrorRecovery; } | 39 bool getAllowErrorRecovery() const { return AllowErrorRecovery; } | 
| 40 void setAllowErrorRecovery(bool NewValue) { AllowErrorRecovery = NewValue; } | 40 void setAllowErrorRecovery(bool NewValue) { AllowErrorRecovery = NewValue; } | 
| 41 | 41 | 
| 42 bool getAllowExternDefinedSymbols() const { | |
| 43 return AllowExternDefinedSymbols; | |
| 44 } | |
| 45 void setAllowExternDefinedSymbols(bool NewValue) { | |
| 46 AllowExternDefinedSymbols = NewValue; | |
| 47 } | |
| 48 | |
| 42 bool getAllowIacaMarks() const { return AllowIacaMarks; } | 49 bool getAllowIacaMarks() const { return AllowIacaMarks; } | 
| 43 void setAllowIacaMarks(bool NewValue) { AllowIacaMarks = NewValue; } | 50 void setAllowIacaMarks(bool NewValue) { AllowIacaMarks = NewValue; } | 
| 44 | 51 | 
| 45 bool getAllowUninitializedGlobals() const { | 52 bool getAllowUninitializedGlobals() const { | 
| 46 return AllowUninitializedGlobals; | 53 return AllowUninitializedGlobals; | 
| 47 } | 54 } | 
| 48 void setAllowUninitializedGlobals(bool NewValue) { | 55 void setAllowUninitializedGlobals(bool NewValue) { | 
| 49 AllowUninitializedGlobals = NewValue; | 56 AllowUninitializedGlobals = NewValue; | 
| 50 } | 57 } | 
| 51 | 58 | 
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 231 bool isSequential() const { return NumTranslationThreads == 0; } | 238 bool isSequential() const { return NumTranslationThreads == 0; } | 
| 232 void setNumTranslationThreads(size_t NewValue) { | 239 void setNumTranslationThreads(size_t NewValue) { | 
| 233 NumTranslationThreads = NewValue; | 240 NumTranslationThreads = NewValue; | 
| 234 } | 241 } | 
| 235 | 242 | 
| 236 uint64_t getRandomSeed() const { return RandomSeed; } | 243 uint64_t getRandomSeed() const { return RandomSeed; } | 
| 237 void setRandomSeed(size_t NewValue) { RandomSeed = NewValue; } | 244 void setRandomSeed(size_t NewValue) { RandomSeed = NewValue; } | 
| 238 | 245 | 
| 239 private: | 246 private: | 
| 240 bool AllowErrorRecovery; | 247 bool AllowErrorRecovery; | 
| 248 bool AllowExternDefinedSymbols = false; | |
| 
John
2015/10/06 19:30:15
I have mixed feelings about this initialization he
 
Jim Stichnoth
2015/10/06 20:16:21
I agree that there should be consistency here.
 
Karl
2015/10/06 21:47:18
Done.
 | |
| 241 bool AllowIacaMarks; | 249 bool AllowIacaMarks; | 
| 242 bool AllowUninitializedGlobals; | 250 bool AllowUninitializedGlobals; | 
| 243 bool DataSections; | 251 bool DataSections; | 
| 244 bool DecorateAsm; | 252 bool DecorateAsm; | 
| 245 bool DisableInternal; | 253 bool DisableInternal; | 
| 246 bool DisableIRGeneration; | 254 bool DisableIRGeneration; | 
| 247 bool DisableTranslation; | 255 bool DisableTranslation; | 
| 248 bool DumpStats; | 256 bool DumpStats; | 
| 249 bool EnableBlockProfile; | 257 bool EnableBlockProfile; | 
| 250 bool ForceMemIntrinOpt; | 258 bool ForceMemIntrinOpt; | 
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 282 IceString TranslateOnly; | 290 IceString TranslateOnly; | 
| 283 IceString VerboseFocusOn; | 291 IceString VerboseFocusOn; | 
| 284 | 292 | 
| 285 size_t NumTranslationThreads; // 0 means completely sequential | 293 size_t NumTranslationThreads; // 0 means completely sequential | 
| 286 uint64_t RandomSeed; | 294 uint64_t RandomSeed; | 
| 287 }; | 295 }; | 
| 288 | 296 | 
| 289 } // end of namespace Ice | 297 } // end of namespace Ice | 
| 290 | 298 | 
| 291 #endif // SUBZERO_SRC_ICECLFLAGS_H | 299 #endif // SUBZERO_SRC_ICECLFLAGS_H | 
| OLD | NEW |