Reoganize Function/BasicBlock creation
[frida/frida.git] / src / core / Function.hxx
index b57dca2706edd31df2b31798c18d5ebedf301017..5497800969e57b8f12a2a2c8e24bdaf20688c675 100644 (file)
@@ -8,7 +8,6 @@ class InformationManager;
 
 class Function {
 public:
-       Function(const std::string& name, uint64_t start_address, InformationManager* manager);
 
        uint64_t getStartAddress() const {
                return start_address;
@@ -30,10 +29,14 @@ public:
                return _blocks;
        }
 private:
+       Function(uint64_t start_address, InformationManager* manager);
+
        std::string name;
        uint64_t start_address;
        InformationManager * manager;
        std::map<uint64_t, BasicBlock*> _blocks;
+
+       friend class InformationManager;
 };
 
 #endif