| 414 | } |
| 415 | |
| 416 | instruction_ref module::move_instruction(instruction_ref src, instruction_ref dst) |
| 417 | { |
| 418 | impl->changed.notify(); |
| 419 | assert(has_instruction(src)); |
| 420 | assert(has_instruction(dst) or is_end(dst, this->end())); |
| 421 | impl->instructions.splice(dst, impl->instructions, src); |
| 422 | return src; |
| 423 | } |
| 424 | |
| 425 | instruction_ref module::move_instructions(instruction_ref src, instruction_ref dst) |
| 426 | { |