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

Unified Diff: src/IceClFlagsExtra.h

Issue 997773002: Refactor Subzero initialization and add a browser callback handler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add argv note Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceClFlags.cpp ('k') | src/IceCompileServer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceClFlagsExtra.h
diff --git a/src/IceClFlagsExtra.h b/src/IceClFlagsExtra.h
new file mode 100644
index 0000000000000000000000000000000000000000..9346d6e571cb231d3a89c0a775fa8275b6f94b8f
--- /dev/null
+++ b/src/IceClFlagsExtra.h
@@ -0,0 +1,79 @@
+//===- subzero/src/IceClFlagsExtra.h - Extra Cl Flags -----------*- C++ -*-===//
+//
+// The Subzero Code Generator
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file declares command line flags primarily used for non-minimal builds.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef SUBZERO_SRC_ICECLFLAGSEXTRA_H
+#define SUBZERO_SRC_ICECLFLAGSEXTRA_H
+
+#include "llvm/IRReader/IRReader.h"
+
+#include "IceDefs.h"
+
+namespace Ice {
+
+class ClFlagsExtra {
+ ClFlagsExtra(const ClFlagsExtra &) = delete;
+ ClFlagsExtra &operator=(const ClFlagsExtra &) = delete;
+
+public:
+ ClFlagsExtra()
+ : AlwaysExitSuccess(false), BuildOnRead(false), GenerateBuildAtts(false),
+ LLVMVerboseErrors(false), InputFileFormat(llvm::LLVMFormat) {}
+
+ bool getAlwaysExitSuccess() const { return AlwaysExitSuccess; }
+ void setAlwaysExitSuccess(bool NewValue) { AlwaysExitSuccess = NewValue; }
+
+ bool getBuildOnRead() const { return BuildOnRead; }
+ void setBuildOnRead(bool NewValue) { BuildOnRead = NewValue; }
+
+ bool getGenerateBuildAtts() const { return GenerateBuildAtts; }
+ void setGenerateBuildAtts(bool NewValue) { GenerateBuildAtts = NewValue; }
+
+ bool getLLVMVerboseErrors() const { return LLVMVerboseErrors; }
+ void setLLVMVerboseErrors(bool NewValue) { LLVMVerboseErrors = NewValue; }
+
+ llvm::NaClFileFormat getInputFileFormat() const { return InputFileFormat; }
+ void setInputFileFormat(llvm::NaClFileFormat NewValue) {
+ InputFileFormat = NewValue;
+ }
+
+ const IceString &getAppName() const { return AppName; }
+ void setAppName(const IceString &NewValue) { AppName = NewValue; }
+
+ const IceString &getIRFilename() const { return IRFilename; }
+ void setIRFilename(const IceString &NewValue) { IRFilename = NewValue; }
+
+ const IceString &getLogFilename() const { return LogFilename; }
+ void setLogFilename(const IceString &NewValue) { LogFilename = NewValue; }
+
+ const IceString &getOutputFilename() const { return OutputFilename; }
+ void setOutputFilename(const IceString &NewValue) {
+ OutputFilename = NewValue;
+ }
+
+private:
+ bool AlwaysExitSuccess;
+ bool BuildOnRead;
+ bool GenerateBuildAtts;
+ bool LLVMVerboseErrors;
+
+ llvm::NaClFileFormat InputFileFormat;
+
+ IceString AppName;
+ IceString IRFilename;
+ IceString LogFilename;
+ IceString OutputFilename;
+};
+
+} // end of namespace Ice
+
+#endif // SUBZERO_SRC_ICECLFLAGSEXTRA_H
« no previous file with comments | « src/IceClFlags.cpp ('k') | src/IceCompileServer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698