| 92 | const segment* add_segment(instruction_ref ins, segment s) { return &(ins2segment[ins] = s); } |
| 93 | |
| 94 | const segment* get_segment(instruction_ref ins) const |
| 95 | { |
| 96 | auto it = ins2segment.find(ins); |
| 97 | if(it == ins2segment.end()) |
| 98 | return nullptr; |
| 99 | return &it->second; |
| 100 | } |
| 101 | |
| 102 | // Remove segment for an instruction |
| 103 | void remove(instruction_ref ins) |