Workaround for bug in GCC 3.1.1 iostreams library on sparc. It apprarently
authorChris Lattner <sabre@nondot.org>
Thu, 19 Sep 2002 20:49:25 +0000 (20:49 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 19 Sep 2002 20:49:25 +0000 (20:49 +0000)
isn't flushing an ostream when it is deleted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3834 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Assembly/PrintModulePass.h

index 1dfb75e049daba6998b807224cbb7e7a87c0afb1..a86f13cf7fba6a173a2428690427516d29f85262 100644 (file)
@@ -28,7 +28,7 @@ public:
   }
   
   bool run(Module &M) {
-    (*Out) << M;
+    (*Out) << M << std::flush;
     return false;
   }