mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Removed a useless ofstream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
26343a5642
commit
e6aa9e30b1
@ -60,27 +60,21 @@ MachineCodeEmitter *MachineCodeEmitter::createDebugEmitter() {
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class FilePrinterEmitter : public MachineCodeEmitter {
|
class FilePrinterEmitter : public MachineCodeEmitter {
|
||||||
std::ofstream f, actual;
|
std::ofstream actual;
|
||||||
std::ostream &o;
|
std::ostream &o;
|
||||||
MachineCodeEmitter &MCE;
|
MachineCodeEmitter &MCE;
|
||||||
unsigned counter;
|
unsigned counter;
|
||||||
bool mustClose;
|
|
||||||
unsigned values[4];
|
unsigned values[4];
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FilePrinterEmitter(MachineCodeEmitter &M, std::ostream &os)
|
FilePrinterEmitter(MachineCodeEmitter &M, std::ostream &os)
|
||||||
: f("lli.out"), o(os), MCE(M), counter(0), mustClose(false) {
|
: o(os), MCE(M), counter(0) {
|
||||||
if (!f.good()) {
|
|
||||||
std::cerr << "Cannot open 'lli.out' for writing\n";
|
|
||||||
abort();
|
|
||||||
}
|
|
||||||
openActual();
|
openActual();
|
||||||
}
|
}
|
||||||
|
|
||||||
~FilePrinterEmitter() {
|
~FilePrinterEmitter() {
|
||||||
o << "\n";
|
o << "\n";
|
||||||
actual.close();
|
actual.close();
|
||||||
if (mustClose) f.close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void openActual() {
|
void openActual() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user