diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-07-25 22:39:30 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-07-25 22:39:30 +0000 |
commit | fb754b6db2c74b71e20042f84a95cdb93fc33870 (patch) | |
tree | e353d8f45553e7f61dca0e83a254acdfe83f97f6 | |
parent | 05faf17d454998ee498bf1a4e75500e32047b19b (diff) |
Remove unused ASTConsumer::HandleTopLevelDeclaration
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54071 91177308-0d34-0410-b5e6-96231b3b80d8
-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()); } |