Add a trap record at the current offset.
(&mut self, code: TrapCode)
| 1743 | |
| 1744 | /// Add a trap record at the current offset. |
| 1745 | pub fn add_trap(&mut self, code: TrapCode) { |
| 1746 | self.traps.push(MachTrap { |
| 1747 | offset: self.data.len() as CodeOffset, |
| 1748 | code, |
| 1749 | }); |
| 1750 | } |
| 1751 | |
| 1752 | /// Add a call-site record at the current offset. |
| 1753 | pub fn add_call_site(&mut self) { |