Index: src/PNaClTranslator.h |
diff --git a/src/PNaClTranslator.h b/src/PNaClTranslator.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b1437c1b75e75926cd884ee98cfdf343a161ab7a |
--- /dev/null |
+++ b/src/PNaClTranslator.h |
@@ -0,0 +1,32 @@ |
+//===- subzero/src/PNaClTranlator.h - Builds ICE from PNaCl bitcode -------===// |
jvoung (off chromium)
2014/07/01 17:32:53
PNaClTranslator.h
Karl
2014/07/01 21:31:08
Done.
|
+// |
+// 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 translator. |
+// |
+//===----------------------------------------------------------------------===// |
+ |
+#ifndef SUBZERO_SRC_ICEREADER_H |
jvoung (off chromium)
2014/07/01 17:32:54
if-def guards don't match the filename
I guess cl
Karl
2014/07/01 21:31:08
Done.
|
+#define SUBZERO_SRC_ICEREADER_H |
+ |
+#include "IceTranslator.h" |
+ |
+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 successul. Nonzero otherwise. |
jvoung (off chromium)
2014/07/01 17:32:53
successful
Karl
2014/07/01 21:31:08
Done.
|
+ int translate(std::string IRFilename); |
jvoung (off chromium)
2014/07/01 17:32:53
Could this be: "const std::string &" ?
Karl
2014/07/01 21:31:08
Done.
|
+}; |
+ |
+} |
+ |
+#endif // SUBZERO_SRC_ICEREADER_H |