[cfe-commits] r54469 - /cfe/trunk/Driver/ASTConsumers.cpp
Matthijs Kooijman
matthijs at stdin.nl
Thu Aug 7 09:04:20 PDT 2008
Author: matthijs
Date: Thu Aug 7 11:04:15 2008
New Revision: 54469
URL: http://llvm.org/viewvc/llvm-project?rev=54469&view=rev
Log:
Let LLVMCodeGenWriter forward all the methods defined in ASTConsumer, to
prevent unexpected surprises later on.
Modified:
cfe/trunk/Driver/ASTConsumers.cpp
Modified: cfe/trunk/Driver/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/ASTConsumers.cpp?rev=54469&r1=54468&r2=54469&view=diff
==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Thu Aug 7 11:04:15 2008
@@ -652,15 +652,23 @@
virtual void Initialize(ASTContext &Context) {
Gen->Initialize(Context);
}
+
+ virtual void InitializeTU(TranslationUnit& TU) {
+ Gen->InitializeTU(TU);
+ }
virtual void HandleTopLevelDecl(Decl *D) {
Gen->HandleTopLevelDecl(D);
}
+ virtual void HandleTranslationUnit(TranslationUnit& TU) {
+ Gen->HandleTranslationUnit(TU);
+ }
+
virtual void HandleTagDeclDefinition(TagDecl *D) {
Gen->HandleTagDeclDefinition(D);
}
-
+
virtual ~LLVMCodeGenWriter() {
llvm::OwningPtr<llvm::Module> CodeGenModule(Gen->ReleaseModule());
More information about the cfe-commits
mailing list