1 #ifndef INCLUDE__Function_hxx
2 #define INCLUDE__Function_hxx
5 #include "BasicBlock.hxx"
7 class InformationManager;
11 Function(const std::string& name, uint64_t start_address,
12 InformationManager* manager)
14 , start_address(start_address)
17 uint64_t getStartAddress() const {
21 std::string getName() const {
25 InformationManager* getManager() const {
29 void addBasicBlock(BasicBlock* block) {
30 _blocks.insert(std::make_pair(block->getStartAddress(), block));
33 std::map<uint64_t, BasicBlock*>& blocks() {
38 uint64_t start_address;
39 InformationManager * manager;
40 std::map<uint64_t, BasicBlock*> _blocks;