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, InformationManager* manager);
13 uint64_t getStartAddress() const {
17 std::string getName() const
19 void setName(const std::string& new_name);
21 InformationManager* getManager() const {
25 void addBasicBlock(BasicBlock* block) {
26 _blocks.insert(std::make_pair(block->getStartAddress(), block));
29 const std::map<uint64_t, BasicBlock*>& blocks() {
34 uint64_t start_address;
35 InformationManager * manager;
36 std::map<uint64_t, BasicBlock*> _blocks;