[cfe-commits] r66555 - in /cfe/trunk/lib: AST/APValue.cpp AST/StmtPrinter.cpp Analysis/SVals.cpp Basic/SourceLocation.cpp CodeGen/CGCall.cpp Driver/Arg.cpp Driver/Driver.cpp Driver/Option.cpp
Daniel Dunbar
daniel at zuster.org
Tue Mar 10 11:00:20 PDT 2009
Author: ddunbar
Date: Tue Mar 10 13:00:19 2009
New Revision: 66555
URL: http://llvm.org/viewvc/llvm-project?rev=66555&view=rev
Log:
Remove some now-unneeded calls to llvm::errs().flush().
Modified:
cfe/trunk/lib/AST/APValue.cpp
cfe/trunk/lib/AST/StmtPrinter.cpp
cfe/trunk/lib/Analysis/SVals.cpp
cfe/trunk/lib/Basic/SourceLocation.cpp
cfe/trunk/lib/CodeGen/CGCall.cpp
cfe/trunk/lib/Driver/Arg.cpp
cfe/trunk/lib/Driver/Driver.cpp
cfe/trunk/lib/Driver/Option.cpp
Modified: cfe/trunk/lib/AST/APValue.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/APValue.cpp?rev=66555&r1=66554&r2=66555&view=diff
==============================================================================
--- cfe/trunk/lib/AST/APValue.cpp (original)
+++ cfe/trunk/lib/AST/APValue.cpp Tue Mar 10 13:00:19 2009
@@ -67,7 +67,6 @@
void APValue::dump() const {
print(llvm::errs());
llvm::errs() << '\n';
- llvm::errs().flush();
}
static double GetApproxValue(const llvm::APFloat &F) {
Modified: cfe/trunk/lib/AST/StmtPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtPrinter.cpp?rev=66555&r1=66554&r2=66555&view=diff
==============================================================================
--- cfe/trunk/lib/AST/StmtPrinter.cpp (original)
+++ cfe/trunk/lib/AST/StmtPrinter.cpp Tue Mar 10 13:00:19 2009
@@ -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,
Modified: cfe/trunk/lib/Analysis/SVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/SVals.cpp?rev=66555&r1=66554&r2=66555&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/SVals.cpp (original)
+++ cfe/trunk/lib/Analysis/SVals.cpp Tue Mar 10 13:00:19 2009
@@ -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);
Modified: cfe/trunk/lib/Basic/SourceLocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/SourceLocation.cpp?rev=66555&r1=66554&r2=66555&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/SourceLocation.cpp (original)
+++ cfe/trunk/lib/Basic/SourceLocation.cpp Tue Mar 10 13:00:19 2009
@@ -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 {
Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=66555&r1=66554&r2=66555&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Tue Mar 10 13:00:19 2009
@@ -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());
Modified: cfe/trunk/lib/Driver/Arg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Arg.cpp?rev=66555&r1=66554&r2=66555&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Arg.cpp (original)
+++ cfe/trunk/lib/Driver/Arg.cpp Tue Mar 10 13:00:19 2009
@@ -47,8 +47,6 @@
llvm::errs() << " NumValues:" << getNumValues();
llvm::errs() << ">\n";
-
- llvm::errs().flush(); // FIXME
}
FlagArg::FlagArg(const Option *Opt, unsigned Index)
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=66555&r1=66554&r2=66555&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Tue Mar 10 13:00:19 2009
@@ -59,8 +59,6 @@
llvm::errs() << '"' << A->getValue(*Args, j) << '"';
}
llvm::errs() << "}\n";
-
- llvm::errs().flush(); // FIXME
}
return new Compilation();
Modified: cfe/trunk/lib/Driver/Option.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Option.cpp?rev=66555&r1=66554&r2=66555&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Option.cpp (original)
+++ cfe/trunk/lib/Driver/Option.cpp Tue Mar 10 13:00:19 2009
@@ -69,8 +69,6 @@
llvm::errs() << " NumArgs:" << MOA->getNumArgs();
llvm::errs() << ">\n";
-
- llvm::errs().flush(); // FIXME
}
bool Option::matches(const Option *Opt) const {
More information about the cfe-commits
mailing list