OLD | NEW |
1 //===- subzero/src/PNaClTranslator.h - ICE from bitcode ---------*- C++ -*-===// | 1 //===- subzero/src/PNaClTranslator.h - ICE from bitcode ---------*- C++ -*-===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This file declares the PNaCl bitcode file to ICE, to machine code | 10 // This file declares the PNaCl bitcode file to ICE, to machine code |
11 // translator. | 11 // translator. |
12 // | 12 // |
13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
14 | 14 |
15 #ifndef SUBZERO_SRC_PNACLTRANSLATOR_H | 15 #ifndef SUBZERO_SRC_PNACLTRANSLATOR_H |
16 #define SUBZERO_SRC_PNACLTRANSLATOR_H | 16 #define SUBZERO_SRC_PNACLTRANSLATOR_H |
17 | 17 |
18 #include "IceTranslator.h" | 18 #include "IceTranslator.h" |
19 #include <string> | 19 #include <string> |
20 | 20 |
21 namespace Ice { | 21 namespace Ice { |
22 | 22 |
23 class PNaClTranslator : public Translator { | 23 class PNaClTranslator : public Translator { |
24 public: | 24 public: |
25 PNaClTranslator(GlobalContext *Ctx, ClFlags &Flags) | 25 PNaClTranslator(GlobalContext *Ctx, ClFlags &Flags) |
26 : Translator(Ctx, Flags) {} | 26 : Translator(Ctx, Flags) {} |
27 // Reads the PNaCl bitcode file and translates to ICE, which is then | 27 // Reads the PNaCl bitcode file and translates to ICE, which is then |
28 // converted to machine code. Sets ExitStatus to non-zero if any | 28 // converted to machine code. Sets ErrorStatus to true if any |
29 // errors occurred. | 29 // errors occurred. |
30 void translate(const std::string &IRFilename); | 30 void translate(const std::string &IRFilename); |
31 | 31 |
32 private: | 32 private: |
33 PNaClTranslator(const PNaClTranslator &) LLVM_DELETED_FUNCTION; | 33 PNaClTranslator(const PNaClTranslator &) LLVM_DELETED_FUNCTION; |
34 PNaClTranslator &operator=(const PNaClTranslator &) LLVM_DELETED_FUNCTION; | 34 PNaClTranslator &operator=(const PNaClTranslator &) LLVM_DELETED_FUNCTION; |
35 }; | 35 }; |
36 } | 36 } |
37 | 37 |
38 #endif // SUBZERO_SRC_PNACLTRANSLATOR_H | 38 #endif // SUBZERO_SRC_PNACLTRANSLATOR_H |
OLD | NEW |