Removed dependence on #including iostream.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44338 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/StmtPrinter.cpp b/AST/StmtPrinter.cpp
index 9822e47..1887468 100644
--- a/AST/StmtPrinter.cpp
+++ b/AST/StmtPrinter.cpp
@@ -19,7 +19,7 @@
#include "clang/AST/PrettyPrinter.h"
#include "clang/Basic/IdentifierTable.h"
#include "llvm/Support/Compiler.h"
-#include <iostream>
+#include "llvm/Support/Streams.h"
#include <iomanip>
using namespace clang;
@@ -788,8 +788,7 @@
//===----------------------------------------------------------------------===//
void Stmt::dumpPretty() const {
- // FIXME: eliminate use of <iostream>
- printPretty(std::cerr);
+ printPretty(*llvm::cerr.stream());
}
void Stmt::printPretty(std::ostream &OS, PrinterHelper* Helper) const {