summaryrefslogtreecommitdiff
path: root/include/llvm/Assembly
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-19 20:49:25 +0000
committerChris Lattner <sabre@nondot.org>2002-09-19 20:49:25 +0000
commitfd479b6fd4fe7ec83421a8b999e6b02d86a9e006 (patch)
tree7988590ee5c03274f5ec77ca40dcf3aaed4fa0b5 /include/llvm/Assembly
parentb4ee4f935e310310b3a56df1d65a4ca9540b0361 (diff)
downloadllvm-fd479b6fd4fe7ec83421a8b999e6b02d86a9e006.tar.gz
llvm-fd479b6fd4fe7ec83421a8b999e6b02d86a9e006.tar.bz2
llvm-fd479b6fd4fe7ec83421a8b999e6b02d86a9e006.tar.xz
Workaround for bug in GCC 3.1.1 iostreams library on sparc. It apprarently
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
Diffstat (limited to 'include/llvm/Assembly')
-rw-r--r--include/llvm/Assembly/PrintModulePass.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Assembly/PrintModulePass.h b/include/llvm/Assembly/PrintModulePass.h
index 1dfb75e049..a86f13cf7f 100644
--- a/include/llvm/Assembly/PrintModulePass.h
+++ b/include/llvm/Assembly/PrintModulePass.h
@@ -28,7 +28,7 @@ public:
}
bool run(Module &M) {
- (*Out) << M;
+ (*Out) << M << std::flush;
return false;
}