| 49 | } |
| 50 | |
| 51 | fn formatter(&self, diff_config: &DiffObjConfig) -> Box<dyn iced_x86::Formatter> { |
| 52 | let mut formatter: Box<dyn iced_x86::Formatter> = match diff_config.x86_formatter { |
| 53 | X86Formatter::Intel => Box::new(IntelFormatter::new()), |
| 54 | X86Formatter::Gas => Box::new(GasFormatter::new()), |
| 55 | X86Formatter::Nasm => Box::new(NasmFormatter::new()), |
| 56 | X86Formatter::Masm => Box::new(MasmFormatter::new()), |
| 57 | }; |
| 58 | formatter.options_mut().set_space_after_operand_separator(diff_config.space_between_args); |
| 59 | formatter |
| 60 | } |
| 61 | |
| 62 | fn reloc_size(&self, flags: RelocationFlags) -> Option<usize> { |
| 63 | match self.arch { |