aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-12-12 06:44:12 +0000
committerTed Kremenek <kremenek@apple.com>2007-12-12 06:44:12 +0000
commitf155e461ce8b48f56110f1b0914b85c367a1f58e (patch)
treed5960dba194e9eb63b767bce02ad69bb94d28330
parentbeb663677aa20db59da4e5ab7d535804ec6f963c (diff)
Removed VisitDeclStmt(). The initializers of a DeclStmt are now automatically
printed out by DumpSubTree() via the child_iterator interface. This fixes a bug where the initializers were being dumped twice. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44920 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--AST/StmtDumper.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/AST/StmtDumper.cpp b/AST/StmtDumper.cpp
index c6ab29880d..b36c80b237 100644
--- a/AST/StmtDumper.cpp
+++ b/AST/StmtDumper.cpp
@@ -102,7 +102,6 @@ namespace {
// Stmts.
void VisitStmt(Stmt *Node);
- void VisitDeclStmt(DeclStmt *Node);
void VisitLabelStmt(LabelStmt *Node);
void VisitGotoStmt(GotoStmt *Node);
@@ -233,20 +232,6 @@ void StmtDumper::DumpDeclarator(Decl *D) {
}
}
-void StmtDumper::VisitDeclStmt(DeclStmt *Node) {
- DumpStmt(Node);
- fprintf(F, "\n");
- for (ScopedDecl *D = Node->getDecl(); D; D = D->getNextDeclarator()) {
- ++IndentLevel;
- Indent();
- fprintf(F, "%p ", (void*)D);
- DumpDeclarator(D);
- if (D->getNextDeclarator())
- fprintf(F, "\n");
- --IndentLevel;
- }
-}
-
void StmtDumper::VisitLabelStmt(LabelStmt *Node) {
DumpStmt(Node);
fprintf(F, " '%s'\n", Node->getName());