flush stream after dumping.
authorChris Lattner <sabre@nondot.org>
Mon, 25 Aug 2008 04:55:46 +0000 (04:55 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 25 Aug 2008 04:55:46 +0000 (04:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55301 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 1b98d55dbacd7118cf32a61d7193e9b6a52cb08f..56653e8fdb3e296f7d1d3465c06bfb15753d8710 100644 (file)
@@ -1790,13 +1790,13 @@ void Value::print(std::ostream &O, AssemblyAnnotationWriter *AAW) const {
 
 // Value::dump - allow easy printing of  Values from the debugger.
 // Located here because so much of the needed functionality is here.
-void Value::dump() const { print(errs()); errs() << '\n'; }
+void Value::dump() const { print(errs()); errs() << '\n'; errs().flush(); }
 
 // Type::dump - allow easy printing of  Values from the debugger.
 // Located here because so much of the needed functionality is here.
-void Type::dump() const { print(errs()); errs() << '\n'; }
+void Type::dump() const { print(errs()); errs() << '\n'; errs().flush(); }
 
 // Module::dump() - Allow printing from debugger
-void Module::dump() const { print(errs(), 0); }
+void Module::dump() const { print(errs(), 0); errs().flush(); }