mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
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:
parent
741bb0019d
commit
aaa3939476
@ -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);
|
||||||
};
|
};
|
||||||
|
@ -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);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user