diff options
author | Pavel Labath <labath@google.com> | 2013-09-04 14:35:00 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2013-09-04 14:35:00 +0000 |
commit | 1ef8342e11bd6750d1d6e0ffdabbf596d8bd09de (patch) | |
tree | 732134872f1482559fd6a1139ef43b3b8f61ab00 /clang/lib/AST/ASTDumper.cpp | |
parent | 7a0423468e41b32a82791dd9a3f41aff1f8855cb (diff) | |
download | bcm5719-llvm-1ef8342e11bd6750d1d6e0ffdabbf596d8bd09de.tar.gz bcm5719-llvm-1ef8342e11bd6750d1d6e0ffdabbf596d8bd09de.zip |
ASTDumper: fix dump of CXXCatchStmt
Summary: I added the display of the VarDecl contained in the statement.
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1596
llvm-svn: 189941
Diffstat (limited to 'clang/lib/AST/ASTDumper.cpp')
-rw-r--r-- | clang/lib/AST/ASTDumper.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp index dfd4640d8fe..2e717490d6e 100644 --- a/clang/lib/AST/ASTDumper.cpp +++ b/clang/lib/AST/ASTDumper.cpp @@ -249,6 +249,7 @@ namespace { void VisitAttributedStmt(const AttributedStmt *Node); void VisitLabelStmt(const LabelStmt *Node); void VisitGotoStmt(const GotoStmt *Node); + void VisitCXXCatchStmt(const CXXCatchStmt *Node); // Exprs void VisitExpr(const Expr *Node); @@ -1461,6 +1462,11 @@ void ASTDumper::VisitGotoStmt(const GotoStmt *Node) { dumpPointer(Node->getLabel()); } +void ASTDumper::VisitCXXCatchStmt(const CXXCatchStmt *Node) { + VisitStmt(Node); + dumpDecl(Node->getExceptionDecl()); +} + //===----------------------------------------------------------------------===// // Expr dumping methods. //===----------------------------------------------------------------------===// |