Chromium Code Reviews| Index: src/PNaClTranslator.h | 
| diff --git a/src/PNaClTranslator.h b/src/PNaClTranslator.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..c6975c137b57d820c94f3a7b23a7dadf0cc820cb | 
| --- /dev/null | 
| +++ b/src/PNaClTranslator.h | 
| @@ -0,0 +1,35 @@ | 
| +//===- subzero/src/PNaClTranslator.h - Builds ICE from PNaCl bitcode ------===// | 
| 
 
Jim Stichnoth
2014/07/07 20:50:25
Add the C++ emacs mode indicator.
 
Karl
2014/07/07 21:50:57
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, to machine code | 
| +// translator. | 
| +// | 
| +//===----------------------------------------------------------------------===// | 
| + | 
| +#ifndef SUBZERO_SRC_PNACLTRANSLATOR_H | 
| +#define SUBZERO_SRC_PNACLTRANSLATOR_H | 
| + | 
| +#include "IceTranslator.h" | 
| +#include <string> | 
| + | 
| +namespace Ice { | 
| + | 
| +class PNaClTranslator : public Translator { | 
| +public: | 
| + PNaClTranslator(Ice::GlobalContext *Ctx, Ice::ClFlags &Flags) | 
| 
 
Jim Stichnoth
2014/07/07 20:50:24
Remove Ice::
 
Karl
2014/07/07 21:50:56
Done.
 
 | 
| + : Translator(Ctx, Flags) {} | 
| + // Reads the PNaCl bitcode file and translates to ICE, which is then | 
| + // converted to machine code. Sets ExitStatus to non-zero if any | 
| + // errors occurred. | 
| + void translate(const std::string &IRFilename); | 
| +}; | 
| 
 
Jim Stichnoth
2014/07/07 20:50:24
Disable default copy ctor and assignment operator.
 
Karl
2014/07/07 21:50:56
Done.
 
 | 
| + | 
| +} | 
| + | 
| +#endif // SUBZERO_SRC_PNACLTRANSLATOR_H | 
| 
 
Jim Stichnoth
2014/07/07 20:50:24
Single space before comment. :)
 
Karl
2014/07/07 21:50:57
Letting the formatter decide.
 
 |