Files
fail/tools/import-trace/InstructionImporter.hpp
Horst Schirmeier ff3a5fb498 move to LLVM 3.9
This change removes support for earlier LLVM versions; making them
work as well is simply too tedious.

Change-Id: I372a151279ceb2bfd6de101c9e0c15f0a4b18c03
2018-07-24 09:15:33 +02:00

28 lines
700 B
C++

#ifndef __INSTRUCTION_IMPORTER_H__
#define __INSTRUCTION_IMPORTER_H__
#include "Importer.hpp"
#include "util/llvmdisassembler/LLVMDisassembler.hpp"
class InstructionImporter : public Importer {
llvm::object::Binary *binary = 0;
std::unique_ptr<fail::LLVMDisassembler> disas;
protected:
virtual bool handle_ip_event(fail::simtime_t curtime, instruction_count_t instr,
Trace_Event &ev);
virtual bool handle_mem_event(fail::simtime_t curtime, instruction_count_t instr,
Trace_Event &ev) {
/* ignore on purpose */
return true;
}
void getAliases(std::deque<std::string> *aliases) {
aliases->push_back("InstructionImporter");
aliases->push_back("code");
}
};
#endif