summaryrefslogtreecommitdiff
path: root/architecture.cpp
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-05-21 15:40:40 -0400
committerGlenn Smith <glenn@vector35.com>2025-05-21 15:55:33 -0400
commit7034625749757855498719688163172210395379 (patch)
tree1fd2b9b814eaa8ed81dcad7b386aeb0239e3f3e6 /architecture.cpp
parent397b5693c4b354349ade15eab09baa5dde744f1c (diff)
Fix HLIL_LABEL rendering
Diffstat (limited to 'architecture.cpp')
-rw-r--r--architecture.cpp20
1 files changed, 20 insertions, 0 deletions
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;