Skip to content

Commit f21f611

Browse files
committed
wasm fix
1 parent 9b72ce3 commit f21f611

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

objdiff-wasm/src/api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ impl From<diff::display::DiffText<'_>> for DiffText {
500500
obj::InstructionArgValue::Opaque(v) => DiffText::Opaque(v.into_owned()),
501501
},
502502
diff::display::DiffText::BranchDest(v) => DiffText::BranchDest(v),
503+
diff::display::DiffText::BranchArrow(v) => DiffText::BranchArrow(v),
503504
diff::display::DiffText::Symbol(s) => DiffText::Symbol(DiffTextSymbol {
504505
name: s.name.clone(),
505506
demangled_name: s.demangled_name.clone(),

objdiff-wasm/wit/objdiff.wit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ interface display {
203203
opaque(string),
204204
// Instruction argument (branch destination)
205205
branch-dest(u64),
206+
// Branch source/destination arrow
207+
branch-arrow(u32),
206208
// Relocation target name
207209
symbol(diff-text-symbol),
208210
// Relocation addend

0 commit comments

Comments
 (0)