Old versions of GCC doesn't have <ostream> :(
[oota-llvm.git] / utils / TableGen / CodeEmitterGen.h
1 //===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
2 //
3 //
4 //===----------------------------------------------------------------------===//
5
6 #ifndef CODEMITTERGEN_H
7 #define CODEMITTERGEN_H
8
9 #include "Record.h"
10 #include <iostream>
11
12 struct CodeEmitterGen {
13   RecordKeeper &Records;
14   
15 public:
16   CodeEmitterGen(RecordKeeper &R) : Records(R) {}
17   
18   void createEmitter(std::ostream &o);
19   void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
20   void emitGetValueBit(std::ostream &o, const std::string &Namespace);
21 };
22
23 #endif