| 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 // This file declares command line flags controlling translation. | 10 // This file declares command line flags controlling translation. |
| 11 // | 11 // |
| 12 //===----------------------------------------------------------------------===// | 12 //===----------------------------------------------------------------------===// |
| 13 | 13 |
| 14 #ifndef SUBZERO_SRC_ICECLFLAGS_H | 14 #ifndef SUBZERO_SRC_ICECLFLAGS_H |
| 15 #define SUBZERO_SRC_ICECLFLAGS_H | 15 #define SUBZERO_SRC_ICECLFLAGS_H |
| 16 | 16 |
| 17 #include "IceTypes.def" | 17 #include "IceTypes.def" |
| 18 | 18 |
| 19 namespace Ice { | 19 namespace Ice { |
| 20 | 20 |
| 21 // TODO(stichnot) Move more command line flags into ClFlags. | 21 // TODO(stichnot) Move more command line flags into ClFlags. |
| 22 class ClFlags { | 22 class ClFlags { |
| 23 public: | 23 public: |
| 24 ClFlags() | 24 ClFlags() |
| 25 : DisableInternal(false), SubzeroTimingEnabled(false), | 25 : DisableInternal(false), SubzeroTimingEnabled(false), |
| 26 DisableTranslation(false), DisableGlobals(false), | 26 DisableTranslation(false), FunctionSections(false), DataSections(false), |
| 27 FunctionSections(false), DataSections(false), | |
| 28 UseIntegratedAssembler(false), UseSandboxing(false), DumpStats(false), | 27 UseIntegratedAssembler(false), UseSandboxing(false), DumpStats(false), |
| 29 AllowUninitializedGlobals(false), TimeEachFunction(false), | 28 AllowUninitializedGlobals(false), TimeEachFunction(false), |
| 30 DefaultGlobalPrefix(""), DefaultFunctionPrefix(""),TimingFocusOn(""), | 29 DefaultGlobalPrefix(""), DefaultFunctionPrefix(""), TimingFocusOn(""), |
| 31 VerboseFocusOn("") {} | 30 VerboseFocusOn("") {} |
| 32 bool DisableInternal; | 31 bool DisableInternal; |
| 33 bool SubzeroTimingEnabled; | 32 bool SubzeroTimingEnabled; |
| 34 bool DisableTranslation; | 33 bool DisableTranslation; |
| 35 bool DisableGlobals; | |
| 36 bool FunctionSections; | 34 bool FunctionSections; |
| 37 bool DataSections; | 35 bool DataSections; |
| 38 bool UseIntegratedAssembler; | 36 bool UseIntegratedAssembler; |
| 39 bool UseSandboxing; | 37 bool UseSandboxing; |
| 40 bool DumpStats; | 38 bool DumpStats; |
| 41 bool AllowUninitializedGlobals; | 39 bool AllowUninitializedGlobals; |
| 42 bool TimeEachFunction; | 40 bool TimeEachFunction; |
| 43 IceString DefaultGlobalPrefix; | 41 IceString DefaultGlobalPrefix; |
| 44 IceString DefaultFunctionPrefix; | 42 IceString DefaultFunctionPrefix; |
| 45 IceString TimingFocusOn; | 43 IceString TimingFocusOn; |
| 46 IceString VerboseFocusOn; | 44 IceString VerboseFocusOn; |
| 47 }; | 45 }; |
| 48 | 46 |
| 49 } // end of namespace Ice | 47 } // end of namespace Ice |
| 50 | 48 |
| 51 #endif // SUBZERO_SRC_ICECLFLAGS_H | 49 #endif // SUBZERO_SRC_ICECLFLAGS_H |
| OLD | NEW |