Tighten up interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7443 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-07-31 04:32:37 +00:00
parent 741bb0019d
commit aaa3939476
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,6 @@
//===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===// //===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
// //
// FIXME: document
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
@ -7,15 +8,14 @@
#define CODEMITTERGEN_H #define CODEMITTERGEN_H
#include "Record.h" #include "Record.h"
#include <iostream>
struct CodeEmitterGen { class CodeEmitterGen {
RecordKeeper &Records; RecordKeeper &Records;
public: public:
CodeEmitterGen(RecordKeeper &R) : Records(R) {} CodeEmitterGen(RecordKeeper &R) : Records(R) {}
int createEmitter(std::ostream &o); int createEmitter(std::ostream &o);
private:
void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace); void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
void emitGetValueBit(std::ostream &o, const std::string &Namespace); void emitGetValueBit(std::ostream &o, const std::string &Namespace);
}; };

View File

@ -1,5 +1,6 @@
//===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===// //===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
// //
// FIXME: document
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
@ -7,15 +8,14 @@
#define CODEMITTERGEN_H #define CODEMITTERGEN_H
#include "Record.h" #include "Record.h"
#include <iostream>
struct CodeEmitterGen { class CodeEmitterGen {
RecordKeeper &Records; RecordKeeper &Records;
public: public:
CodeEmitterGen(RecordKeeper &R) : Records(R) {} CodeEmitterGen(RecordKeeper &R) : Records(R) {}
int createEmitter(std::ostream &o); int createEmitter(std::ostream &o);
private:
void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace); void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
void emitGetValueBit(std::ostream &o, const std::string &Namespace); void emitGetValueBit(std::ostream &o, const std::string &Namespace);
}; };