constify accessors in BasicBlock
authorChristoph Egger <Christoph.Egger@fau.de>
Fri, 20 Feb 2015 16:35:49 +0000 (17:35 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Fri, 20 Feb 2015 16:35:49 +0000 (17:35 +0100)
src/core/BasicBlock.hxx

index 9018b5b56aa8172d10d66e8f4248aeb9bb87de57..4790b1c5626f2e92e02c012ab161d8912bb394da 100644 (file)
@@ -45,13 +45,13 @@ public:
                end_address = address;
        }
 
-       std::string getName() {
+       std::string getName() const {
                std::stringstream s;
                s << "BLOCK_" << std::hex << start_address << '_' << end_address;
                return s.str();
        }
 
-       Disassembler * getDisassembler() {
+       Disassembler * getDisassembler() const {
                return disassembler;
        }