Add a patchable call record at the current offset The actual call is expected to have been emitted; the VCodeInst trait specifies how to NOP it out, and we carry that information to the finalized Machbuffer.
(&mut self, len: u32)
| 1778 | /// specifies how to NOP it out, and we carry that information to |
| 1779 | /// the finalized Machbuffer. |
| 1780 | pub fn add_patchable_call_site(&mut self, len: u32) { |
| 1781 | self.patchable_call_sites.push(MachPatchableCallSite { |
| 1782 | ret_addr: self.cur_offset(), |
| 1783 | len, |
| 1784 | }); |
| 1785 | } |
| 1786 | |
| 1787 | /// Add an unwind record at the current offset. |
| 1788 | pub fn add_unwind(&mut self, unwind: UnwindInst) { |
no test coverage detected