Index: src/PNaClTranslator.h |
diff --git a/src/PNaClTranslator.h b/src/PNaClTranslator.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c9d9c1781fcb5ef17d09d8a2f9cdf9efe9cc3e28 |
--- /dev/null |
+++ b/src/PNaClTranslator.h |
@@ -0,0 +1,33 @@ |
+//===- subzero/src/PNaClTranslator.h - Builds ICE from PNaCl bitcode ------===// |
+// |
+// 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 PNaCl bitcode file to ICE to machine code translator. |
+// |
+//===----------------------------------------------------------------------===// |
+ |
+#ifndef SUBZERO_SRC_PNACLTRANSLATOR_H |
+#define SUBZERO_SRC_PNACLTRANSLATOR_H |
+ |
+#include "IceTranslator.h" |
+#include <string> |
+ |
+namespace Ice { |
+ |
+class PNaClTranslator : Translator { |
+public: |
+ PNaClTranslator(Ice::GlobalContext *Ctx, Ice::ClFlags &Flags) |
+ : Translator(Ctx, Flags) {} |
+ // Reads the PNaCl bitcode file and translates to ICE. Returns exit |
+ // status 0 if successful. Nonzero otherwise. |
+ int translate(const std::string &IRFilename); |
+}; |
+ |
+} |
+ |
+#endif // SUBZERO_SRC_PNACLTRANSLATOR_H |