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

Unified Diff: src/IceCompiler.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: sandbox it 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
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);
Mircea Trofin 2015/03/13 22:01:34 Could argument passing happen before run is called
jvoung (off chromium) 2015/03/18 15:39:09 Hmm, good point. There is an Ice::ClFlags class t
Mircea Trofin 2015/03/18 16:51:06 I think the 2 issues are indeed related. I believe
+
+ int getReturnValue() const { return ReturnValue; }
+
+private:
+ void setReturnValue(int V) { ReturnValue = V; }
+
+ int ReturnValue;
+};
+
+} // end of namespace Ice
+
+#endif // SUBZERO_SRC_ICECOMPILER_H

Powered by Google App Engine
This is Rietveld 408576698