[cfe-commits] r44920 - /cfe/trunk/AST/StmtDumper.cpp
Ted Kremenek
kremenek at apple.com
Tue Dec 11 22:44:13 PST 2007
Author: kremenek
Date: Wed Dec 12 00:44:12 2007
New Revision: 44920
URL: http://llvm.org/viewvc/llvm-project?rev=44920&view=rev
Log:
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.
Modified:
cfe/trunk/AST/StmtDumper.cpp
Modified: cfe/trunk/AST/StmtDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/StmtDumper.cpp?rev=44920&r1=44919&r2=44920&view=diff
==============================================================================
--- cfe/trunk/AST/StmtDumper.cpp (original)
+++ cfe/trunk/AST/StmtDumper.cpp Wed Dec 12 00:44:12 2007
@@ -102,7 +102,6 @@
// Stmts.
void VisitStmt(Stmt *Node);
- void VisitDeclStmt(DeclStmt *Node);
void VisitLabelStmt(LabelStmt *Node);
void VisitGotoStmt(GotoStmt *Node);
@@ -233,20 +232,6 @@
}
}
-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());
More information about the cfe-commits
mailing list