[llvm-commits] CVS: llvm/lib/CodeGen/MachineCodeEmitter.cpp

Misha Brukman brukman at cs.uiuc.edu
Mon Jun 2 15:51:29 PDT 2003


Changes in directory llvm/lib/CodeGen:

MachineCodeEmitter.cpp updated: 1.10 -> 1.11

---
Log message:

Removed a useless ofstream.


---
Diffs of the changes:

Index: llvm/lib/CodeGen/MachineCodeEmitter.cpp
diff -u llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.10 llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.11
--- llvm/lib/CodeGen/MachineCodeEmitter.cpp:1.10	Sun Jun  1 23:10:41 2003
+++ llvm/lib/CodeGen/MachineCodeEmitter.cpp	Mon Jun  2 15:49:09 2003
@@ -60,27 +60,21 @@
 
 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() {





More information about the llvm-commits mailing list