| OLD | NEW |
| 1 //===- subzero/src/IceClFlagsExtra.h - Extra Cl Flags -----------*- C++ -*-===// | 1 //===- subzero/src/IceClFlagsExtra.h - Extra Cl Flags -----------*- 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 15 matching lines...) Expand all Loading... |
| 26 namespace Ice { | 26 namespace Ice { |
| 27 | 27 |
| 28 /// Declares command line flags primarily used for non-minimal builds. | 28 /// Declares command line flags primarily used for non-minimal builds. |
| 29 class ClFlagsExtra { | 29 class ClFlagsExtra { |
| 30 ClFlagsExtra(const ClFlagsExtra &) = delete; | 30 ClFlagsExtra(const ClFlagsExtra &) = delete; |
| 31 ClFlagsExtra &operator=(const ClFlagsExtra &) = delete; | 31 ClFlagsExtra &operator=(const ClFlagsExtra &) = delete; |
| 32 | 32 |
| 33 public: | 33 public: |
| 34 ClFlagsExtra() = default; | 34 ClFlagsExtra() = default; |
| 35 | 35 |
| 36 /// Get the value of ClFlagsExtra::AlwaysExitSuccess |
| 36 bool getAlwaysExitSuccess() const { return AlwaysExitSuccess; } | 37 bool getAlwaysExitSuccess() const { return AlwaysExitSuccess; } |
| 38 /// Set ClFlagsExtra::AlwaysExitSuccess to a new value |
| 37 void setAlwaysExitSuccess(bool NewValue) { AlwaysExitSuccess = NewValue; } | 39 void setAlwaysExitSuccess(bool NewValue) { AlwaysExitSuccess = NewValue; } |
| 38 | 40 |
| 41 /// Get the value of ClFlagsExtra::BuildOnRead |
| 39 bool getBuildOnRead() const { return BuildOnRead; } | 42 bool getBuildOnRead() const { return BuildOnRead; } |
| 43 /// Set ClFlagsExtra::BuildOnRead to a new value |
| 40 void setBuildOnRead(bool NewValue) { BuildOnRead = NewValue; } | 44 void setBuildOnRead(bool NewValue) { BuildOnRead = NewValue; } |
| 41 | 45 |
| 46 /// Get the value of ClFlagsExtra::GenerateBuildAtts |
| 42 bool getGenerateBuildAtts() const { return GenerateBuildAtts; } | 47 bool getGenerateBuildAtts() const { return GenerateBuildAtts; } |
| 48 /// Set ClFlagsExtra::GenerateBuildAtts to a new value |
| 43 void setGenerateBuildAtts(bool NewValue) { GenerateBuildAtts = NewValue; } | 49 void setGenerateBuildAtts(bool NewValue) { GenerateBuildAtts = NewValue; } |
| 44 | 50 |
| 51 /// Get the value of ClFlagsExtra::LLVMVerboseErrors |
| 45 bool getLLVMVerboseErrors() const { return LLVMVerboseErrors; } | 52 bool getLLVMVerboseErrors() const { return LLVMVerboseErrors; } |
| 53 /// Set ClFlagsExtra::LLVMVerboseErrors to a new value |
| 46 void setLLVMVerboseErrors(bool NewValue) { LLVMVerboseErrors = NewValue; } | 54 void setLLVMVerboseErrors(bool NewValue) { LLVMVerboseErrors = NewValue; } |
| 47 | 55 |
| 56 /// Get the value of ClFlagsExtra::BitcodeAsText |
| 48 bool getBitcodeAsText() const { return BitcodeAsText; } | 57 bool getBitcodeAsText() const { return BitcodeAsText; } |
| 58 /// Set ClFlagsExtra::BitcodeAsText to a new value |
| 49 void setBitcodeAsText(bool NewValue) { BitcodeAsText = NewValue; } | 59 void setBitcodeAsText(bool NewValue) { BitcodeAsText = NewValue; } |
| 50 | 60 |
| 61 /// Get the value of ClFlagsExtra::InputFileFormat |
| 51 llvm::NaClFileFormat getInputFileFormat() const { return InputFileFormat; } | 62 llvm::NaClFileFormat getInputFileFormat() const { return InputFileFormat; } |
| 63 /// Set ClFlagsExtra::InputFileFormat to a new value |
| 52 void setInputFileFormat(llvm::NaClFileFormat NewValue) { | 64 void setInputFileFormat(llvm::NaClFileFormat NewValue) { |
| 53 InputFileFormat = NewValue; | 65 InputFileFormat = NewValue; |
| 54 } | 66 } |
| 55 | 67 |
| 68 /// Get the value of ClFlagsExtra::AppName |
| 56 const IceString &getAppName() const { return AppName; } | 69 const IceString &getAppName() const { return AppName; } |
| 70 /// Set ClFlagsExtra::AppName to a new value |
| 57 void setAppName(const IceString &NewValue) { AppName = NewValue; } | 71 void setAppName(const IceString &NewValue) { AppName = NewValue; } |
| 58 | 72 |
| 73 /// Get the value of ClFlagsExtra::IRFilename |
| 59 const IceString &getIRFilename() const { return IRFilename; } | 74 const IceString &getIRFilename() const { return IRFilename; } |
| 75 /// Set ClFlagsExtra::IRFilename to a new value |
| 60 void setIRFilename(const IceString &NewValue) { IRFilename = NewValue; } | 76 void setIRFilename(const IceString &NewValue) { IRFilename = NewValue; } |
| 61 | 77 |
| 78 /// Get the value of ClFlagsExtra::LogFilename |
| 62 const IceString &getLogFilename() const { return LogFilename; } | 79 const IceString &getLogFilename() const { return LogFilename; } |
| 80 /// Set ClFlagsExtra::LogFilename to a new value |
| 63 void setLogFilename(const IceString &NewValue) { LogFilename = NewValue; } | 81 void setLogFilename(const IceString &NewValue) { LogFilename = NewValue; } |
| 64 | 82 |
| 83 /// Get the value of ClFlagsExtra::OutputFilename |
| 65 const IceString &getOutputFilename() const { return OutputFilename; } | 84 const IceString &getOutputFilename() const { return OutputFilename; } |
| 85 /// Set ClFlagsExtra::OutputFilename to a new value |
| 66 void setOutputFilename(const IceString &NewValue) { | 86 void setOutputFilename(const IceString &NewValue) { |
| 67 OutputFilename = NewValue; | 87 OutputFilename = NewValue; |
| 68 } | 88 } |
| 69 | 89 |
| 70 private: | 90 private: |
| 91 /// see anonymous_namespace{IceClFlags.cpp}::AlwaysExitSuccess |
| 71 bool AlwaysExitSuccess = false; | 92 bool AlwaysExitSuccess = false; |
| 93 /// see anonymous_namespace{IceClFlags.cpp}::BitcodeAsText |
| 72 bool BitcodeAsText = false; | 94 bool BitcodeAsText = false; |
| 95 /// see anonymous_namespace{IceClFlags.cpp}::BuildOnRead |
| 73 bool BuildOnRead = false; | 96 bool BuildOnRead = false; |
| 97 /// see anonymous_namespace{IceClFlags.cpp}::GenerateBuildAtts |
| 74 bool GenerateBuildAtts = false; | 98 bool GenerateBuildAtts = false; |
| 99 /// see anonymous_namespace{IceClFlags.cpp}::LLVMVerboseErrors |
| 75 bool LLVMVerboseErrors = false; | 100 bool LLVMVerboseErrors = false; |
| 76 | 101 |
| 102 /// see anonymous_namespace{IceClFlags.cpp}::InputFileFormat |
| 77 llvm::NaClFileFormat InputFileFormat = llvm::LLVMFormat; | 103 llvm::NaClFileFormat InputFileFormat = llvm::LLVMFormat; |
| 78 | 104 |
| 105 /// see anonymous_namespace{IceClFlags.cpp}::AppName |
| 79 IceString AppName = ""; | 106 IceString AppName = ""; |
| 107 /// see anonymous_namespace{IceClFlags.cpp}::IRFilename |
| 80 IceString IRFilename = ""; | 108 IceString IRFilename = ""; |
| 109 /// see anonymous_namespace{IceClFlags.cpp}::LogFilename |
| 81 IceString LogFilename = ""; | 110 IceString LogFilename = ""; |
| 111 /// see anonymous_namespace{IceClFlags.cpp}::OutputFilename |
| 82 IceString OutputFilename = ""; | 112 IceString OutputFilename = ""; |
| 83 }; | 113 }; |
| 84 | 114 |
| 85 } // end of namespace Ice | 115 } // end of namespace Ice |
| 86 | 116 |
| 87 #endif // SUBZERO_SRC_ICECLFLAGSEXTRA_H | 117 #endif // SUBZERO_SRC_ICECLFLAGSEXTRA_H |
| OLD | NEW |