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

Side by Side Diff: src/IceClFlagsExtra.h

Issue 1803403002: Subzero. Flags refactoring. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove test code. Created 4 years, 9 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
OLDNEW
(Empty)
1 //===- subzero/src/IceClFlagsExtra.h - Extra Cl Flags -----------*- C++ -*-===//
2 //
3 // The Subzero Code Generator
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 ///
10 /// \file
11 /// \brief Defines class Ice::ClFlagsExtra
12 ///
13 //===----------------------------------------------------------------------===//
14
15 #ifndef SUBZERO_SRC_ICECLFLAGSEXTRA_H
16 #define SUBZERO_SRC_ICECLFLAGSEXTRA_H
17
18 #include "IceDefs.h"
19
20 #ifdef __clang__
21 #pragma clang diagnostic push
22 #pragma clang diagnostic ignored "-Wunused-parameter"
23 #pragma clang diagnostic ignored "-Wredundant-move"
24 #endif // __clang__
25
26 #include "llvm/IRReader/IRReader.h"
27
28 #ifdef __clang__
29 #pragma clang diagnostic pop
30 #endif // __clang__
31
32 namespace Ice {
33
34 /// Declares command line flags primarily used for non-minimal builds.
35 class ClFlagsExtra {
36 ClFlagsExtra(const ClFlagsExtra &) = delete;
37 ClFlagsExtra &operator=(const ClFlagsExtra &) = delete;
38
39 public:
40 ClFlagsExtra() = default;
41
42 /// Get the value of ClFlagsExtra::AlwaysExitSuccess
43 bool getAlwaysExitSuccess() const { return AlwaysExitSuccess; }
44 /// Set ClFlagsExtra::AlwaysExitSuccess to a new value
45 void setAlwaysExitSuccess(bool NewValue) { AlwaysExitSuccess = NewValue; }
46
47 /// Get the value of ClFlagsExtra::BuildOnRead
48 bool getBuildOnRead() const { return BuildOnRead; }
49 /// Set ClFlagsExtra::BuildOnRead to a new value
50 void setBuildOnRead(bool NewValue) { BuildOnRead = NewValue; }
51
52 /// Get the value of ClFlagsExtra::GenerateBuildAtts
53 bool getGenerateBuildAtts() const { return GenerateBuildAtts; }
54 /// Set ClFlagsExtra::GenerateBuildAtts to a new value
55 void setGenerateBuildAtts(bool NewValue) { GenerateBuildAtts = NewValue; }
56
57 /// Get the value of ClFlagsExtra::LLVMVerboseErrors
58 bool getLLVMVerboseErrors() const { return LLVMVerboseErrors; }
59 /// Set ClFlagsExtra::LLVMVerboseErrors to a new value
60 void setLLVMVerboseErrors(bool NewValue) { LLVMVerboseErrors = NewValue; }
61
62 /// Get the value of ClFlagsExtra::BitcodeAsText
63 bool getBitcodeAsText() const { return BitcodeAsText; }
64 /// Set ClFlagsExtra::BitcodeAsText to a new value
65 void setBitcodeAsText(bool NewValue) { BitcodeAsText = NewValue; }
66
67 /// Get the value of ClFlagsExtra::InputFileFormat
68 llvm::NaClFileFormat getInputFileFormat() const { return InputFileFormat; }
69 /// Set ClFlagsExtra::InputFileFormat to a new value
70 void setInputFileFormat(llvm::NaClFileFormat NewValue) {
71 InputFileFormat = NewValue;
72 }
73
74 /// Get the value of ClFlagsExtra::AppName
75 const IceString &getAppName() const { return AppName; }
76 /// Set ClFlagsExtra::AppName to a new value
77 void setAppName(const IceString &NewValue) { AppName = NewValue; }
78
79 /// Get the value of ClFlagsExtra::IRFilename
80 const IceString &getIRFilename() const { return IRFilename; }
81 /// Set ClFlagsExtra::IRFilename to a new value
82 void setIRFilename(const IceString &NewValue) { IRFilename = NewValue; }
83
84 /// Get the value of ClFlagsExtra::LogFilename
85 const IceString &getLogFilename() const { return LogFilename; }
86 /// Set ClFlagsExtra::LogFilename to a new value
87 void setLogFilename(const IceString &NewValue) { LogFilename = NewValue; }
88
89 /// Get the value of ClFlagsExtra::OutputFilename
90 const IceString &getOutputFilename() const { return OutputFilename; }
91 /// Set ClFlagsExtra::OutputFilename to a new value
92 void setOutputFilename(const IceString &NewValue) {
93 OutputFilename = NewValue;
94 }
95
96 private:
97 /// see anonymous_namespace{IceClFlags.cpp}::AlwaysExitSuccess
98 bool AlwaysExitSuccess = false;
99 /// see anonymous_namespace{IceClFlags.cpp}::BitcodeAsText
100 bool BitcodeAsText = false;
101 /// see anonymous_namespace{IceClFlags.cpp}::BuildOnRead
102 bool BuildOnRead = false;
103 /// see anonymous_namespace{IceClFlags.cpp}::GenerateBuildAtts
104 bool GenerateBuildAtts = false;
105 /// see anonymous_namespace{IceClFlags.cpp}::LLVMVerboseErrors
106 bool LLVMVerboseErrors = false;
107
108 /// see anonymous_namespace{IceClFlags.cpp}::InputFileFormat
109 llvm::NaClFileFormat InputFileFormat = llvm::LLVMFormat;
110
111 /// see anonymous_namespace{IceClFlags.cpp}::AppName
112 IceString AppName = "";
113 /// see anonymous_namespace{IceClFlags.cpp}::IRFilename
114 IceString IRFilename = "";
115 /// see anonymous_namespace{IceClFlags.cpp}::LogFilename
116 IceString LogFilename = "";
117 /// see anonymous_namespace{IceClFlags.cpp}::OutputFilename
118 IceString OutputFilename = "";
119 };
120
121 } // end of namespace Ice
122
123 #endif // SUBZERO_SRC_ICECLFLAGSEXTRA_H
OLDNEW
« src/IceClFlags.def ('K') | « src/IceClFlags.def ('k') | src/IceCompileServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698