[llvm-commits] CVS: llvm/include/llvm/Assembly/PrintModulePass.h

Chris Lattner lattner at apoc.cs.uiuc.edu
Thu Sep 19 15:50:01 PDT 2002


Changes in directory llvm/include/llvm/Assembly:

PrintModulePass.h updated: 1.11 -> 1.12

---
Log message:

Workaround for bug in GCC 3.1.1 iostreams library on sparc.  It apprarently
isn't flushing an ostream when it is deleted.


---
Diffs of the changes:

Index: llvm/include/llvm/Assembly/PrintModulePass.h
diff -u llvm/include/llvm/Assembly/PrintModulePass.h:1.11 llvm/include/llvm/Assembly/PrintModulePass.h:1.12
--- llvm/include/llvm/Assembly/PrintModulePass.h:1.11	Sat Aug 17 19:37:14 2002
+++ llvm/include/llvm/Assembly/PrintModulePass.h	Thu Sep 19 15:49:25 2002
@@ -28,7 +28,7 @@
   }
   
   bool run(Module &M) {
-    (*Out) << M;
+    (*Out) << M << std::flush;
     return false;
   }
 





More information about the llvm-commits mailing list