Return the emitted code.
(mut self, loc: Option<SourceLoc>)
| 126 | impl Assembler { |
| 127 | /// Return the emitted code. |
| 128 | pub fn finalize(mut self, loc: Option<SourceLoc>) -> MachBufferFinalized<Final> { |
| 129 | let stencil = self |
| 130 | .buffer |
| 131 | .finish(&self.pool.constants(), self.emit_state.ctrl_plane_mut()); |
| 132 | stencil.apply_base_srcloc(loc.unwrap_or_default()) |
| 133 | } |
| 134 | |
| 135 | fn emit(&mut self, inst: Inst) { |
| 136 | self.emit_with_island(inst, Inst::worst_case_size()); |
no test coverage detected