From b954100a7563d684439f8d6f976abc912919b5cb Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 27 May 2014 14:41:20 +0200 Subject: [PATCH] Remove old API --- src/disassembler/Disassembler.cxx | 5 ----- src/disassembler/Disassembler.hxx | 5 ----- src/disassembler/llvm/LLVMDisassembler.cxx | 6 ------ src/disassembler/llvm/LLVMDisassembler.hxx | 4 +--- 4 files changed, 1 insertion(+), 19 deletions(-) diff --git a/src/disassembler/Disassembler.cxx b/src/disassembler/Disassembler.cxx index e3a48a2..cf531d0 100644 --- a/src/disassembler/Disassembler.cxx +++ b/src/disassembler/Disassembler.cxx @@ -1,6 +1 @@ #include "disassembler/Disassembler.hxx" - - -BasicBlock * Disassembler::generateControlFlowGraph(uint64_t address) { - -} diff --git a/src/disassembler/Disassembler.hxx b/src/disassembler/Disassembler.hxx index b2576f7..285c673 100644 --- a/src/disassembler/Disassembler.hxx +++ b/src/disassembler/Disassembler.hxx @@ -17,11 +17,6 @@ public: uint64_t entryAddress(); virtual void forEachFunction(std::function callback) = 0; - // virtual void forEachInstruction(const std::string& name, std::function 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; diff --git a/src/disassembler/llvm/LLVMDisassembler.cxx b/src/disassembler/llvm/LLVMDisassembler.cxx index 287d6a0..c6146f8 100644 --- a/src/disassembler/llvm/LLVMDisassembler.cxx +++ b/src/disassembler/llvm/LLVMDisassembler.cxx @@ -280,9 +280,3 @@ void LLVMDisassembler::forEachFunction(std::function callback(x.first, x.second); }); } - - - -void LLVMDisassembler::generateControlFlowGraph(uint64_t address) { - -} diff --git a/src/disassembler/llvm/LLVMDisassembler.hxx b/src/disassembler/llvm/LLVMDisassembler.hxx index 42024ee..682b1df 100644 --- a/src/disassembler/llvm/LLVMDisassembler.hxx +++ b/src/disassembler/llvm/LLVMDisassembler.hxx @@ -25,14 +25,12 @@ public: void forEachFunction(std::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(); -- 2.39.5