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,