]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/Function.hxx
constify function in Function
[frida/frida.git] / src / core / Function.hxx
index f4fa90e1e429eeaf9928896b454906226ce3e223..aebfe8f8591e2b1174551f4a69b9bf9ae8ab0ecc 100644 (file)
@@ -18,9 +18,10 @@ public:
                return start_address;
        }
 
-       std::string getName() const {
-               return name;
-       }
+       std::string getName() const
+               { return name; }
+       void setName(const std::string& new_name)
+               { name = new_name; }
 
        InformationManager* getManager() const {
                return manager;
@@ -30,7 +31,7 @@ public:
                _blocks.insert(std::make_pair(block->getStartAddress(), block));
        }
 
-       std::map<uint64_t, BasicBlock*>& blocks() {
+       const std::map<uint64_t, BasicBlock*>& blocks() {
                return _blocks;
        }
 private: