Index: src/IceCompiler.h |
diff --git a/src/IceCompiler.h b/src/IceCompiler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a390d8e856f2f554e331665c6af5bbf4fbe43cb4 |
--- /dev/null |
+++ b/src/IceCompiler.h |
@@ -0,0 +1,43 @@ |
+//===- subzero/src/IceCompiler.h - Compiler driver --------------*- 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 the driver for translating bitcode to native code. |
+// |
+//===----------------------------------------------------------------------===// |
+ |
+#ifndef SUBZERO_SRC_ICECOMPILER_H |
+#define SUBZERO_SRC_ICECOMPILER_H |
+ |
+#include "IceDefs.h" |
+ |
+namespace Ice { |
+ |
+class CompileServer; |
+ |
+// A compiler driver. It may be called to handle a single compile request. |
+class Compiler { |
+ Compiler(const Compiler &) = delete; |
+ Compiler &operator=(const Compiler &) = delete; |
+ |
+public: |
+ Compiler() : ReturnValue(0) {} |
+ |
+ void run(int argc, char **argv, CompileServer &Server); |
+ |
+ int getReturnValue() const { return ReturnValue; } |
+ |
+private: |
+ void setReturnValue(int V) { ReturnValue = V; } |
jvoung (off chromium)
2015/03/13 02:07:52
might stash / pull from the global context instead
|
+ |
+ int ReturnValue; |
+}; |
+ |
+} // end of namespace Ice |
+ |
+#endif // SUBZERO_SRC_ICECOMPILER_H |