Removed a useless ofstream.
authorMisha Brukman <brukman+llvm@gmail.com>
Mon, 2 Jun 2003 20:49:09 +0000 (20:49 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Mon, 2 Jun 2003 20:49:09 +0000 (20:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6547 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineCodeEmitter.cpp

index 69d6b38c7875e799ae352cc3986f0787af2d5428..af41ce468cf34bb6a2232e17fd9984b26710ca2d 100644 (file)
@@ -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() {