Remove some now-unneeded calls to llvm::errs().flush().


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66555 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/APValue.cpp b/lib/AST/APValue.cpp
index 23e9e98..4df7671 100644
--- a/lib/AST/APValue.cpp
+++ b/lib/AST/APValue.cpp
@@ -67,7 +67,6 @@
 void APValue::dump() const {
   print(llvm::errs());
   llvm::errs() << '\n';
-  llvm::errs().flush();
 }
 
 static double GetApproxValue(const llvm::APFloat &F) {
diff --git a/lib/AST/StmtPrinter.cpp b/lib/AST/StmtPrinter.cpp
index bcd1a86..c52eb7e 100644
--- a/lib/AST/StmtPrinter.cpp
+++ b/lib/AST/StmtPrinter.cpp
@@ -1223,9 +1223,7 @@
 //===----------------------------------------------------------------------===//
 
 void Stmt::dumpPretty() const {
-  llvm::raw_ostream &OS = llvm::errs();
-  printPretty(OS);
-  OS.flush();
+  printPretty(llvm::errs());
 }
 
 void Stmt::printPretty(llvm::raw_ostream &OS, PrinterHelper* Helper,
diff --git a/lib/Analysis/SVals.cpp b/lib/Analysis/SVals.cpp
index c12c2d2..cca0e94 100644
--- a/lib/Analysis/SVals.cpp
+++ b/lib/Analysis/SVals.cpp
@@ -350,7 +350,7 @@
 // Pretty-Printing.
 //===----------------------------------------------------------------------===//
 
-void SVal::printStdErr() const { print(llvm::errs()); llvm::errs().flush(); }
+void SVal::printStdErr() const { print(llvm::errs()); }
 
 void SVal::print(std::ostream& Out) const {
   llvm::raw_os_ostream out(Out);
diff --git a/lib/Basic/SourceLocation.cpp b/lib/Basic/SourceLocation.cpp
index dc1dceb..82e24d0 100644
--- a/lib/Basic/SourceLocation.cpp
+++ b/lib/Basic/SourceLocation.cpp
@@ -69,7 +69,6 @@
 
 void SourceLocation::dump(const SourceManager &SM) const {
   print(llvm::errs(), SM);
-  llvm::errs().flush();
 }
 
 void SourceRange::Emit(llvm::Serializer& S) const {
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index 1ae4a87..e9ac5c9 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -127,8 +127,6 @@
   case Coerce: 
     fprintf(stderr, "Coerce Type=");
     getCoerceToType()->print(llvm::errs());
-    // FIXME: This is ridiculous.
-    llvm::errs().flush();
     break;
   case Indirect: 
     fprintf(stderr, "Indirect Align=%d", getIndirectAlign());
diff --git a/lib/Driver/Arg.cpp b/lib/Driver/Arg.cpp
index 16efda8..625e784 100644
--- a/lib/Driver/Arg.cpp
+++ b/lib/Driver/Arg.cpp
@@ -47,8 +47,6 @@
     llvm::errs() << " NumValues:" << getNumValues();
 
   llvm::errs() << ">\n";
-
-  llvm::errs().flush(); // FIXME
 }
 
 FlagArg::FlagArg(const Option *Opt, unsigned Index)
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index 541a6d8..5750154 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -59,8 +59,6 @@
       llvm::errs() << '"' << A->getValue(*Args, j) << '"';
     }
     llvm::errs() << "}\n";
-
-    llvm::errs().flush(); // FIXME
   }
 
   return new Compilation();
diff --git a/lib/Driver/Option.cpp b/lib/Driver/Option.cpp
index 73cef25..f92e7aa 100644
--- a/lib/Driver/Option.cpp
+++ b/lib/Driver/Option.cpp
@@ -69,8 +69,6 @@
     llvm::errs() << " NumArgs:" << MOA->getNumArgs();
 
   llvm::errs() << ">\n";
-
-  llvm::errs().flush(); // FIXME
 }
 
 bool Option::matches(const Option *Opt) const {