summaryrefslogtreecommitdiffstats
path: root/clang/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/AST/StmtPrinter.cpp')
-rw-r--r--clang/AST/StmtPrinter.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/AST/StmtPrinter.cpp b/clang/AST/StmtPrinter.cpp
index 41aa6468dbf..f44e20a0ab5 100644
--- a/clang/AST/StmtPrinter.cpp
+++ b/clang/AST/StmtPrinter.cpp
@@ -7,7 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
-// This file implements the Stmt::dump/Stmt::print methods.
+// This file implements the Stmt::dumpPretty/Stmt::printPretty methods, which
+// pretty print the AST back out to C code.
//
//===----------------------------------------------------------------------===//
@@ -524,12 +525,12 @@ void StmtPrinter::VisitCXXBoolLiteralExpr(CXXBoolLiteralExpr *Node) {
// Stmt method implementations
//===----------------------------------------------------------------------===//
-void Stmt::dump() const {
+void Stmt::dumpPretty() const {
// FIXME: eliminate use of <iostream>
- print(std::cerr);
+ printPretty(std::cerr);
}
-void Stmt::print(std::ostream &OS) const {
+void Stmt::printPretty(std::ostream &OS) const {
if (this == 0) {
OS << "<NULL>";
return;
OpenPOWER on IntegriCloud