diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-06-02 20:49:09 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-06-02 20:49:09 +0000 |
commit | 155bdf69936f3e3b06e11757a7169271b3fe0378 (patch) | |
tree | 844409b8e125f37a1760f63793baa5c63eff4f44 /llvm/lib/CodeGen/MachineCodeEmitter.cpp | |
parent | 609b55c255d7debc9a4612bb541ad82591a2e213 (diff) | |
download | bcm5719-llvm-155bdf69936f3e3b06e11757a7169271b3fe0378.tar.gz bcm5719-llvm-155bdf69936f3e3b06e11757a7169271b3fe0378.zip |
Removed a useless ofstream.
llvm-svn: 6547
Diffstat (limited to 'llvm/lib/CodeGen/MachineCodeEmitter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCodeEmitter.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/MachineCodeEmitter.cpp b/llvm/lib/CodeGen/MachineCodeEmitter.cpp index 69d6b38c787..af41ce468cf 100644 --- a/llvm/lib/CodeGen/MachineCodeEmitter.cpp +++ b/llvm/lib/CodeGen/MachineCodeEmitter.cpp @@ -60,27 +60,21 @@ MachineCodeEmitter *MachineCodeEmitter::createDebugEmitter() { namespace { class FilePrinterEmitter : public MachineCodeEmitter { - std::ofstream f, actual; + std::ofstream actual; std::ostream &o; MachineCodeEmitter &MCE; unsigned counter; - bool mustClose; unsigned values[4]; public: FilePrinterEmitter(MachineCodeEmitter &M, std::ostream &os) - : f("lli.out"), o(os), MCE(M), counter(0), mustClose(false) { - if (!f.good()) { - std::cerr << "Cannot open 'lli.out' for writing\n"; - abort(); - } + : o(os), MCE(M), counter(0) { openActual(); } ~FilePrinterEmitter() { o << "\n"; actual.close(); - if (mustClose) f.close(); } void openActual() { |