Use Decl::decl_iterator instead of walking the ScopedDecl chain (which will soon be removed).

llvm-svn: 57190
This commit is contained in:
Ted Kremenek 2008-10-06 18:38:35 +00:00
parent fae8cb0736
commit 62408480d9
1 changed files with 3 additions and 1 deletions

View File

@ -243,7 +243,9 @@ void StmtDumper::DumpDeclarator(Decl *D) {
void StmtDumper::VisitDeclStmt(DeclStmt *Node) {
DumpStmt(Node);
fprintf(F,"\n");
for (ScopedDecl *D = Node->getDecl(); D; D = D->getNextDeclarator()) {
for (DeclStmt::decl_iterator DI = Node->decl_begin(), DE = Node->decl_end();
DI != DE; ++DI) {
ScopedDecl* D = *DI;
++IndentLevel;
Indent();
fprintf(F, "%p ", (void*) D);