MCPcopy Index your code
hub / github.com/encounter/objdiff / formatter

Method formatter

objdiff-core/src/arch/x86.rs:51–60  ·  view source on GitHub ↗
(&self, diff_config: &DiffObjConfig)

Source from the content-addressed store, hash-verified

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 {

Callers 1

display_instructionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected