Overwrites the instruction at `addr` with `op`. Used by the compiler to back-patch placeholder instructions with resolved jump targets.
(&mut self, addr: Address, op: u32)
| 156 | /// |
| 157 | /// Used by the compiler to back-patch placeholder instructions with resolved jump targets. |
| 158 | pub(super) fn patch(&mut self, addr: Address, op: u32) { |
| 159 | self.code[addr] = op; |
| 160 | } |
| 161 | |
| 162 | /// Records a `fixup` that needs to be applied at `addr`. |
| 163 | pub(super) fn add_fixup(&mut self, addr: usize, fixup: Fixup) { |
no outgoing calls
no test coverage detected