OLD | NEW |
(Empty) | |
| 1 //===- subzero/src/PNaClTranslator.h - Builds ICE from PNaCl bitcode ------===// |
| 2 // |
| 3 // The Subzero Code Generator |
| 4 // |
| 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. |
| 7 // |
| 8 //===----------------------------------------------------------------------===// |
| 9 // |
| 10 // This file declares the PNaCl bitcode file to ICE to machine code translator. |
| 11 // |
| 12 //===----------------------------------------------------------------------===// |
| 13 |
| 14 #ifndef SUBZERO_SRC_PNACLTRANSLATOR_H |
| 15 #define SUBZERO_SRC_PNACLTRANSLATOR_H |
| 16 |
| 17 #include "IceTranslator.h" |
| 18 #include <string> |
| 19 |
| 20 namespace Ice { |
| 21 |
| 22 class PNaClTranslator : Translator { |
| 23 public: |
| 24 PNaClTranslator(Ice::GlobalContext *Ctx, Ice::ClFlags &Flags) |
| 25 : Translator(Ctx, Flags) {} |
| 26 // Reads the PNaCl bitcode file and translates to ICE. Returns exit |
| 27 // status 0 if successful. Nonzero otherwise. |
| 28 int translate(const std::string &IRFilename); |
| 29 }; |
| 30 |
| 31 } |
| 32 |
| 33 #endif // SUBZERO_SRC_PNACLTRANSLATOR_H |
OLD | NEW |