diff options
-rw-r--r-- | include/clang/AST/ASTConsumer.h | 8 | ||||
-rw-r--r-- | lib/AST/ASTConsumer.cpp | 10 |
2 files changed, 0 insertions, 18 deletions
diff --git a/include/clang/AST/ASTConsumer.h b/include/clang/AST/ASTConsumer.h index b9513be240..1ca17744de 100644 --- a/include/clang/AST/ASTConsumer.h +++ b/include/clang/AST/ASTConsumer.h @@ -42,14 +42,6 @@ public: /// translation unit have been parsed. virtual void HandleTranslationUnit(TranslationUnit& TU) {} - /// HandleTopLevelDeclaration - Handle the specified top-level declaration. - /// This is called only for Decl* that are the head of a chain of - /// Decl's (in the case that the Decl* is a ScopedDecl*). Subclasses - /// can override its behavior; by default it calls HandleTopLevelDecl - /// for every Decl* in a decl chain. - virtual void HandleTopLevelDeclaration(Decl *D); - - /// HandleTagDeclDefinition - This callback is invoked each time a TagDecl /// (e.g. struct, union, enum, class) is completed. This allows the client to /// hack on the type, which can occur at any point in the file (because these diff --git a/lib/AST/ASTConsumer.cpp b/lib/AST/ASTConsumer.cpp index 3f92990f36..bf6a0cb761 100644 --- a/lib/AST/ASTConsumer.cpp +++ b/lib/AST/ASTConsumer.cpp @@ -19,16 +19,6 @@ using namespace clang; ASTConsumer::~ASTConsumer() {} -void ASTConsumer::HandleTopLevelDeclaration(Decl* d) { - if (ScopedDecl* sd = dyn_cast<ScopedDecl>(d)) - while (sd) { - HandleTopLevelDecl(sd); - sd = sd->getNextDeclarator(); - } - else - HandleTopLevelDecl(d); -} - void ASTConsumer::InitializeTU(TranslationUnit& TU) { Initialize(TU.getContext()); } |