[cfe-commits] r54071 - in /cfe/trunk: include/clang/AST/ASTConsumer.h lib/AST/ASTConsumer.cpp
Daniel Dunbar
daniel at zuster.org
Fri Jul 25 15:39:30 PDT 2008
Author: ddunbar
Date: Fri Jul 25 17:39:30 2008
New Revision: 54071
URL: http://llvm.org/viewvc/llvm-project?rev=54071&view=rev
Log:
Remove unused ASTConsumer::HandleTopLevelDeclaration
Modified:
cfe/trunk/include/clang/AST/ASTConsumer.h
cfe/trunk/lib/AST/ASTConsumer.cpp
Modified: cfe/trunk/include/clang/AST/ASTConsumer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTConsumer.h?rev=54071&r1=54070&r2=54071&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTConsumer.h (original)
+++ cfe/trunk/include/clang/AST/ASTConsumer.h Fri Jul 25 17:39:30 2008
@@ -42,14 +42,6 @@
/// 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
Modified: cfe/trunk/lib/AST/ASTConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTConsumer.cpp?rev=54071&r1=54070&r2=54071&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTConsumer.cpp (original)
+++ cfe/trunk/lib/AST/ASTConsumer.cpp Fri Jul 25 17:39:30 2008
@@ -19,16 +19,6 @@
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());
}
More information about the cfe-commits
mailing list