Return the emitted code.
(mut self, loc: Option<SourceLoc>)
| 328 | |
| 329 | /// Return the emitted code. |
| 330 | pub fn finalize(mut self, loc: Option<SourceLoc>) -> MachBufferFinalized<Final> { |
| 331 | let stencil = self |
| 332 | .buffer |
| 333 | .finish(&self.pool.constants(), self.emit_state.ctrl_plane_mut()); |
| 334 | stencil.apply_base_srcloc(loc.unwrap_or_default()) |
| 335 | } |
| 336 | |
| 337 | fn emit(&mut self, inst: Inst) { |
| 338 | inst.emit(&mut self.buffer, &self.emit_info, &mut self.emit_state); |
no test coverage detected