Reoganize Function/BasicBlock creation
[frida/frida.git] / src / core / BasicBlock.hxx
index 4790b1c5626f2e92e02c012ab161d8912bb394da..69d4f37d9c85cb8643bccdd713bb40f9c9adf102 100644 (file)
@@ -10,15 +10,6 @@ class InformationManager;
 
 class BasicBlock {
 public:
-       BasicBlock(uint64_t start_address, Disassembler * disassembler,
-                  InformationManager* manager)
-               : start_address(start_address)
-               , disassembler(disassembler)
-               , manager(manager) {
-               next_blocks[0] = 0;
-               next_blocks[1] = 0;
-       }
-
        uint64_t getStartAddress() const {
                return start_address;
        }
@@ -51,19 +42,24 @@ public:
                return s.str();
        }
 
-       Disassembler * getDisassembler() const {
-               return disassembler;
-       }
-
        InformationManager* getManager() const {
                return manager;
        }
 private:
+       BasicBlock(uint64_t start_address, InformationManager* manager)
+               : start_address(start_address)
+               , manager(manager) {
+               next_blocks[0] = 0;
+               next_blocks[1] = 0;
+       }
+
        uint64_t start_address;
        uint64_t end_address;
        Disassembler* disassembler;
        InformationManager* manager;
        uint64_t next_blocks[2];
+
+       friend class InformationManager;
 };
 
 #endif