| 515 | } |
| 516 | |
| 517 | std::vector<instruction_ref> |
| 518 | module::insert_instructions(instruction_ref ins, |
| 519 | const std::vector<instruction_ref>& instructions, |
| 520 | std::unordered_map<instruction_ref, instruction_ref>* map_ins, |
| 521 | module::inserter insert) |
| 522 | { |
| 523 | std::unordered_map<instruction_ref, instruction_ref> default_map_ins; |
| 524 | return insert_generic_instructions(*this, |
| 525 | ins, |
| 526 | instructions, |
| 527 | map_ins == nullptr ? default_map_ins : *map_ins, |
| 528 | std::move(insert)); |
| 529 | } |
| 530 | |
| 531 | std::vector<instruction_ref> |
| 532 | module::insert_instructions(instruction_ref ins, |