]> granicus.if.org Git - clang/commitdiff
Send AST dumping/printing to stdout instead of stderr.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 3 Aug 2010 17:29:57 +0000 (17:29 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 3 Aug 2010 17:29:57 +0000 (17:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110123 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/StmtDumper.cpp
lib/AST/StmtPrinter.cpp
lib/Frontend/ASTConsumers.cpp

index 62dcf60be05e5b7c944c85a6754352732fe25c42..c878a55e0e6440bc963f1e9e38681c21e36dbeab 100644 (file)
@@ -631,30 +631,30 @@ void StmtDumper::VisitObjCSuperExpr(ObjCSuperExpr *Node) {
 /// specified node and a few nodes underneath it, but not the whole subtree.
 /// This is useful in a debugger.
 void Stmt::dump(SourceManager &SM) const {
-  StmtDumper P(&SM, llvm::errs(), 4);
+  StmtDumper P(&SM, llvm::outs(), 4);
   P.DumpSubTree(const_cast<Stmt*>(this));
-  llvm::errs() << "\n";
+  llvm::outs() << "\n";
 }
 
 /// dump - This does a local dump of the specified AST fragment.  It dumps the
 /// specified node and a few nodes underneath it, but not the whole subtree.
 /// This is useful in a debugger.
 void Stmt::dump() const {
-  StmtDumper P(0, llvm::errs(), 4);
+  StmtDumper P(0, llvm::outs(), 4);
   P.DumpSubTree(const_cast<Stmt*>(this));
-  llvm::errs() << "\n";
+  llvm::outs() << "\n";
 }
 
 /// dumpAll - This does a dump of the specified AST fragment and all subtrees.
 void Stmt::dumpAll(SourceManager &SM) const {
-  StmtDumper P(&SM, llvm::errs(), ~0U);
+  StmtDumper P(&SM, llvm::outs(), ~0U);
   P.DumpSubTree(const_cast<Stmt*>(this));
-  llvm::errs() << "\n";
+  llvm::outs() << "\n";
 }
 
 /// dumpAll - This does a dump of the specified AST fragment and all subtrees.
 void Stmt::dumpAll() const {
-  StmtDumper P(0, llvm::errs(), ~0U);
+  StmtDumper P(0, llvm::outs(), ~0U);
   P.DumpSubTree(const_cast<Stmt*>(this));
-  llvm::errs() << "\n";
+  llvm::outs() << "\n";
 }
index 7043c35516289e4332b3f20f1ee398ed5d1b0f3e..293e24065ad4821ad5c289acb21f7430129c6496 100644 (file)
@@ -1354,7 +1354,7 @@ void StmtPrinter::VisitBlockDeclRefExpr(BlockDeclRefExpr *Node) {
 //===----------------------------------------------------------------------===//
 
 void Stmt::dumpPretty(ASTContext& Context) const {
-  printPretty(llvm::errs(), Context, 0,
+  printPretty(llvm::outs(), Context, 0,
               PrintingPolicy(Context.getLangOptions()));
 }
 
index 87b01d4a6a2ae857247afbf41d1bef855c367201..eb7f270ae8fb2c7124e334ce74bffd191438908d 100644 (file)
@@ -37,7 +37,7 @@ namespace {
 
   public:
     ASTPrinter(llvm::raw_ostream* o = NULL, bool Dump = false)
-      : Out(o? *o : llvm::errs()), Dump(Dump) { }
+      : Out(o? *o : llvm::outs()), Dump(Dump) { }
 
     virtual void HandleTranslationUnit(ASTContext &Context) {
       PrintingPolicy Policy = Context.PrintingPolicy;