From 4a77edb3f0fabc8e214a3d5636c4d0aff031645c Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 10 Mar 2009 18:00:19 +0000 Subject: [PATCH] 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 --- lib/AST/APValue.cpp | 1 - lib/AST/StmtPrinter.cpp | 4 +--- lib/Analysis/SVals.cpp | 2 +- lib/Basic/SourceLocation.cpp | 1 - lib/CodeGen/CGCall.cpp | 2 -- lib/Driver/Arg.cpp | 2 -- lib/Driver/Driver.cpp | 2 -- lib/Driver/Option.cpp | 2 -- 8 files changed, 2 insertions(+), 14 deletions(-) diff --git a/lib/AST/APValue.cpp b/lib/AST/APValue.cpp index 23e9e980c5..4df7671c5a 100644 --- a/lib/AST/APValue.cpp +++ b/lib/AST/APValue.cpp @@ -67,7 +67,6 @@ void APValue::MakeUninit() { 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 bcd1a86ca6..c52eb7e84e 100644 --- a/lib/AST/StmtPrinter.cpp +++ b/lib/AST/StmtPrinter.cpp @@ -1223,9 +1223,7 @@ void StmtPrinter::VisitBlockDeclRefExpr(BlockDeclRefExpr *Node) { //===----------------------------------------------------------------------===// 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 c12c2d2770..cca0e94191 100644 --- a/lib/Analysis/SVals.cpp +++ b/lib/Analysis/SVals.cpp @@ -350,7 +350,7 @@ Loc Loc::MakeVal(SymbolRef sym) { return loc::SymbolVal(sym); } // 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 dc1dceb724..82e24d00a2 100644 --- a/lib/Basic/SourceLocation.cpp +++ b/lib/Basic/SourceLocation.cpp @@ -69,7 +69,6 @@ void SourceLocation::print(llvm::raw_ostream &OS, const SourceManager &SM)const{ 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 1ae4a87606..e9ac5c9751 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -127,8 +127,6 @@ void ABIArgInfo::dump() const { 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 16efda8ecf..625e784579 100644 --- a/lib/Driver/Arg.cpp +++ b/lib/Driver/Arg.cpp @@ -47,8 +47,6 @@ void Arg::dump() const { 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 541a6d8eeb..5750154a09 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -59,8 +59,6 @@ Compilation *Driver::BuildCompilation(int argc, const char **argv) { 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 73cef25a55..f92e7aab26 100644 --- a/lib/Driver/Option.cpp +++ b/lib/Driver/Option.cpp @@ -69,8 +69,6 @@ void Option::dump() const { llvm::errs() << " NumArgs:" << MOA->getNumArgs(); llvm::errs() << ">\n"; - - llvm::errs().flush(); // FIXME } bool Option::matches(const Option *Opt) const { -- 2.40.0