retdec
asm_inst_remover.h
Go to the documentation of this file.
1 
8 #ifndef RETDEC_BIN2LLVMIR_OPTIMIZATIONS_ASM_INST_REMOVER_ASM_INST_REMOVER_H
9 #define RETDEC_BIN2LLVMIR_OPTIMIZATIONS_ASM_INST_REMOVER_ASM_INST_REMOVER_H
10 
11 #include <llvm/IR/Module.h>
12 #include <llvm/Pass.h>
13 
14 namespace retdec {
15 namespace bin2llvmir {
16 
17 class AsmInstructionRemover : public llvm::ModulePass
18 {
19  public:
20  static char ID;
22  virtual bool runOnModule(llvm::Module& M) override;
23  bool runOnModuleCustom(llvm::Module& M);
24 
25  private:
26  bool run(llvm::Module& M);
27 };
28 
29 } // namespace bin2llvmir
30 } // namespace retdec
31 
32 #endif
Definition: asm_inst_remover.h:18
virtual bool runOnModule(llvm::Module &M) override
Definition: asm_inst_remover.cpp:32
AsmInstructionRemover()
Definition: asm_inst_remover.cpp:26
bool runOnModuleCustom(llvm::Module &M)
Definition: asm_inst_remover.cpp:37
bool run(llvm::Module &M)
Definition: asm_inst_remover.cpp:46
static char ID
Definition: asm_inst_remover.h:20
The frontend-end part of the decompiler.
Definition: archive_wrapper.h:19