Recursive disassembler
[frida/frida.git] / src / disassembler / BasicBlock.hxx
1 #ifndef INCLUDE__BasicBlock_hxx
2 #define INCLUDE__BasicBlock_hxx
3
4 class BasicBlock {
5 public:
6 BasicBlock() {}
7
8 uint64_t getStartAddress() const {
9 return start_address;
10 }
11
12 uint64_t getEndAddress() const {
13 return end_address;
14 }
15
16 BasicBlock * const * getNextBlocks() const {
17 return next_blocks;
18 }
19
20 void setStartAddress(uint64_t address) {
21 start_address = address;
22 }
23
24 void setEndAddress(uint64_t address) {
25 end_address = address;
26 }
27
28 private:
29 uint64_t start_address;
30 uint64_t end_address;
31
32 BasicBlock * next_blocks[2];
33 };
34
35 #endif