#include "disassembler/Disassembler.hxx"
-
-
-BasicBlock * Disassembler::generateControlFlowGraph(uint64_t address) {
-
-}
uint64_t entryAddress();
virtual void forEachFunction(std::function<void (uint64_t, Function*)> callback) = 0;
- // virtual void forEachInstruction(const std::string& name, std::function<void (long, std::string, std::string)> callback) = 0;
-
- // http://llvm.org/docs/doxygen/html/MCObjectDisassembler_8cpp_source.html +197
- BasicBlock * generateControlFlowGraph(const std::string& name);
- BasicBlock * generateControlFlowGraph(uint64_t address);
protected:
virtual bool isFunctionCall(uint64_t address) = 0;
callback(x.first, x.second);
});
}
-
-
-
-void LLVMDisassembler::generateControlFlowGraph(uint64_t address) {
-
-}
void forEachFunction(std::function<void (uint64_t, Function*)> callback);
- BasicBlock * generateControlFlowGraph(const std::string& name);
- BasicBlock * generateControlFlowGraph(uint64_t address);
-
protected:
bool isFunctionCall(uint64_t address) {return false;}
bool isJump(uint64_t address) {return false;}
private:
+ // http://llvm.org/docs/doxygen/html/MCObjectDisassembler_8cpp_source.html +197
void disassemble();
void readSymbols();