diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-12-09 13:24:40 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-12-09 13:24:40 +0000 |
commit | 50a29bd40b5198336170971a5c274707962d182d (patch) | |
tree | 10d783a5e8a6ef4a1e7aad0cc049986f3965ff4e /clang/lib/AST/ASTDumper.cpp | |
parent | 3283535dc8c82c0fab0236a94c1f06e7e4f6ba48 (diff) | |
download | bcm5719-llvm-50a29bd40b5198336170971a5c274707962d182d.tar.gz bcm5719-llvm-50a29bd40b5198336170971a5c274707962d182d.zip |
Revert "Introduce optional labels to dumpStmt"
This reverts commit 933402caa09963792058198578522a95f013c69c.
llvm-svn: 348718
Diffstat (limited to 'clang/lib/AST/ASTDumper.cpp')
-rw-r--r-- | clang/lib/AST/ASTDumper.cpp | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp index d1d7097a64e..b95813ed7c1 100644 --- a/clang/lib/AST/ASTDumper.cpp +++ b/clang/lib/AST/ASTDumper.cpp @@ -83,8 +83,7 @@ namespace { void setDeserialize(bool D) { Deserialize = D; } void dumpDecl(const Decl *D); - void dumpStmt(const Stmt *S, const char *label = nullptr); - void dumpStmtImpl(const Stmt *S); + void dumpStmt(const Stmt *S); // Utilities void dumpType(QualType T) { NodeDumper.dumpType(T); } @@ -1712,18 +1711,7 @@ void ASTDumper::VisitBlockDecl(const BlockDecl *D) { // Stmt dumping methods. //===----------------------------------------------------------------------===// -void ASTDumper::dumpStmt(const Stmt *S, const char *label) { - if (label) { - dumpChild([=] { - OS << label; - dumpStmtImpl(S); - }); - } else { - dumpStmtImpl(S); - } -} - -void ASTDumper::dumpStmtImpl(const Stmt *S) { +void ASTDumper::dumpStmt(const Stmt *S) { dumpChild([=] { if (!S) { ColorScope Color(OS, ShowColors, NullColor); @@ -1990,7 +1978,10 @@ void ASTDumper::VisitInitListExpr(const InitListExpr *ILE) { NodeDumper.dumpBareDeclRef(Field); } if (auto *Filler = ILE->getArrayFiller()) { - dumpStmt(Filler, "array filler"); + dumpChild([=] { + OS << "array filler"; + dumpStmt(Filler); + }); } } |