From 8d621c51b2797fda7b1dc22243dde611cfc04f68 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 23 Dec 2025 13:12:02 -0700 Subject: Refactor calling conventions to support correct representation of structures --- rust/src/disassembly.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rust/src/disassembly.rs') diff --git a/rust/src/disassembly.rs b/rust/src/disassembly.rs index cb9bf6a1..718c7737 100644 --- a/rust/src/disassembly.rs +++ b/rust/src/disassembly.rs @@ -506,6 +506,7 @@ pub enum InstructionTextTokenKind { // TODO: Explain what this is hash: Option, }, + ValueLocation, CodeSymbol { // Target address of the symbol value: u64, @@ -700,6 +701,7 @@ impl InstructionTextTokenKind { hash => Some(hash), }, }, + BNInstructionTextTokenType::ValueLocationToken => Self::ValueLocation, BNInstructionTextTokenType::CodeSymbolToken => Self::CodeSymbol { value: value.value, size: value.size, @@ -914,6 +916,9 @@ impl From for BNInstructionTextTokenType { BNInstructionTextTokenType::BaseStructureSeparatorToken } InstructionTextTokenKind::Brace { .. } => BNInstructionTextTokenType::BraceToken, + InstructionTextTokenKind::ValueLocation => { + BNInstructionTextTokenType::ValueLocationToken + } InstructionTextTokenKind::CodeSymbol { .. } => { BNInstructionTextTokenType::CodeSymbolToken } -- cgit v1.3.1