From 7034625749757855498719688163172210395379 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Wed, 21 May 2025 15:40:40 -0400 Subject: Fix HLIL_LABEL rendering --- architecture.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'architecture.cpp') diff --git a/architecture.cpp b/architecture.cpp index f5fbf892..22bf6fc3 100644 --- a/architecture.cpp +++ b/architecture.cpp @@ -119,6 +119,26 @@ InstructionTextToken InstructionTextToken::WithConfidence(uint8_t conf) } +BNInstructionTextToken InstructionTextToken::GetAPIObject() const +{ + BNInstructionTextToken result; + ConvertInstructionTextToken(*this, &result); + return result; +} + + +InstructionTextToken InstructionTextToken::FromAPIObject(const BNInstructionTextToken* token) +{ + return InstructionTextToken(*token); +} + + +void InstructionTextToken::FreeAPIObject(BNInstructionTextToken* token) +{ + FreeInstructionTextToken(token); +} + + void InstructionTextToken::ConvertInstructionTextToken(const InstructionTextToken& token, BNInstructionTextToken* result) { result->type = token.type; -- cgit v1.3.1