Simplify code to match new interfaces
[oota-llvm.git] / support / tools / TableGen / CodeEmitterGen.h
1 //===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
2 //
3 // FIXME: document
4 //
5 //===----------------------------------------------------------------------===//
6
7 #ifndef CODEMITTERGEN_H
8 #define CODEMITTERGEN_H
9
10 #include <string>
11 #include <iosfwd>
12 class RecordKeeper;
13
14 class CodeEmitterGen {
15   RecordKeeper &Records;
16 public:
17   CodeEmitterGen(RecordKeeper &R) : Records(R) {}
18   
19   // run - Output the code emitter
20   void run(std::ostream &o);
21 private:
22   void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
23   void emitGetValueBit(std::ostream &o, const std::string &Namespace);
24 };
25
26 #endif