Move Decl::NextDeclarator (w/ setters/getters) down to ScopedDecl/FieldDecl.
Decl is now svelte:-)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41935 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/StmtDumper.cpp b/AST/StmtDumper.cpp
index 332931b..09909d8 100644
--- a/AST/StmtDumper.cpp
+++ b/AST/StmtDumper.cpp
@@ -225,7 +225,7 @@
void StmtDumper::VisitDeclStmt(DeclStmt *Node) {
DumpStmt(Node);
fprintf(F, "\n");
- for (Decl *D = Node->getDecl(); D; D = D->getNextDeclarator()) {
+ for (ScopedDecl *D = Node->getDecl(); D; D = D->getNextDeclarator()) {
++IndentLevel;
Indent();
fprintf(F, "%p ", (void*)D);
diff --git a/AST/StmtPrinter.cpp b/AST/StmtPrinter.cpp
index 9cc2c3a..44a04f6 100644
--- a/AST/StmtPrinter.cpp
+++ b/AST/StmtPrinter.cpp
@@ -144,7 +144,7 @@
}
void StmtPrinter::VisitDeclStmt(DeclStmt *Node) {
- for (Decl *D = Node->getDecl(); D; D = D->getNextDeclarator()) {
+ for (ScopedDecl *D = Node->getDecl(); D; D = D->getNextDeclarator()) {
Indent();
PrintRawDecl(D);
OS << ";\n";