mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-15 04:00:56 +00:00
Let LLVMCodeGenWriter forward all the methods defined in ASTConsumer, to
prevent unexpected surprises later on. llvm-svn: 54469
This commit is contained in:
parent
75b4fc2c84
commit
8dab3eec81
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user