(arg: &InstructionArg, reloc: Option<ResolvedRelocation>)
| 221 | } |
| 222 | |
| 223 | fn arg_to_string(arg: &InstructionArg, reloc: Option<ResolvedRelocation>) -> String { |
| 224 | match arg { |
| 225 | InstructionArg::Value(arg) => arg.to_string(), |
| 226 | InstructionArg::Reloc => { |
| 227 | reloc.as_ref().map_or_else(|| "<unknown>".to_string(), |r| r.symbol.name.clone()) |
| 228 | } |
| 229 | InstructionArg::BranchDest(arg) => arg.to_string(), |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | fn resolve_branches(ops: &[InstructionRef], rows: &mut [InstructionDiffRow]) { |
| 234 | let mut branch_idx = 0u32; |