forked from OSchip/llvm-project
Use Decl::decl_iterator instead of walking the ScopedDecl chain (which will soon be removed).
llvm-svn: 57190
This commit is contained in:
parent
fae8cb0736
commit
62408480d9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue