(
&self,
resolved: ResolvedInstructionRef,
diff_config: &DiffObjConfig,
cb: &mut dyn FnMut(InstructionPart) -> Result<()>,
)
| 313 | } |
| 314 | |
| 315 | fn display_instruction( |
| 316 | &self, |
| 317 | resolved: ResolvedInstructionRef, |
| 318 | diff_config: &DiffObjConfig, |
| 319 | cb: &mut dyn FnMut(InstructionPart) -> Result<()>, |
| 320 | ) -> Result<()> { |
| 321 | let ins = self.parse_ins_ref(resolved.ins_ref, resolved.code, diff_config)?; |
| 322 | |
| 323 | let options = self.unarm_options(diff_config); |
| 324 | let mut string_fmt = unarm::StringFormatter::new(&options); |
| 325 | ins.write_opcode(&mut string_fmt)?; |
| 326 | let opcode = string_fmt.into_string(); |
| 327 | cb(InstructionPart::opcode(opcode, resolved.ins_ref.opcode))?; |
| 328 | |
| 329 | let mut args_formatter = |
| 330 | ArgsFormatter { options: &options, cb, resolved: &resolved, skip_leading_space: true }; |
| 331 | ins.write_params(&mut args_formatter)?; |
| 332 | Ok(()) |
| 333 | } |
| 334 | |
| 335 | fn relocation_override( |
| 336 | &self, |
no test coverage detected