]> granicus.if.org Git - clang/commitdiff
Removed dependence on #including iostream.
authorTed Kremenek <kremenek@apple.com>
Mon, 26 Nov 2007 22:50:46 +0000 (22:50 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 26 Nov 2007 22:50:46 +0000 (22:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44338 91177308-0d34-0410-b5e6-96231b3b80d8

AST/StmtPrinter.cpp

index 9822e4789e6688349ebb77c80560d1b8fdcd14cf..1887468819c5526f65c8e3cddfb5ca688498910e 100644 (file)
@@ -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 StmtPrinter::VisitObjCMessageExpr(ObjCMessageExpr *Mess) {
 //===----------------------------------------------------------------------===//
 
 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 {