Copy `ir::SigRef`s from the callee into the caller.
(func: &mut ir::Function, callee: &ir::Function)
| 1488 | |
| 1489 | /// Copy `ir::SigRef`s from the callee into the caller. |
| 1490 | fn create_sig_refs(func: &mut ir::Function, callee: &ir::Function) -> u32 { |
| 1491 | let offset = func.dfg.signatures.len(); |
| 1492 | let offset = u32::try_from(offset).unwrap(); |
| 1493 | |
| 1494 | func.dfg.signatures.reserve(callee.dfg.signatures.len()); |
| 1495 | for sig in callee.dfg.signatures.values() { |
| 1496 | func.dfg.signatures.push(sig.clone()); |
| 1497 | } |
| 1498 | |
| 1499 | offset |
| 1500 | } |
| 1501 | |
| 1502 | fn create_user_external_name_refs( |
| 1503 | allocs: &mut InliningAllocs, |