Let LLVMCodeGenWriter forward all the methods defined in ASTConsumer, to

prevent unexpected surprises later on.

llvm-svn: 54469
This commit is contained in:
Matthijs Kooijman 2008-08-07 16:04:15 +00:00
parent 75b4fc2c84
commit 8dab3eec81

View File

@ -652,15 +652,23 @@ public:
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());