summaryrefslogtreecommitdiff
path: root/highlevelilinstruction.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2025-10-13 19:35:01 -0400
committerRusty Wagner <rusty.wagner@gmail.com>2025-10-21 13:52:39 -0400
commit5d4fc5f1fb7a0c368d2a048a5d750564c970c9c9 (patch)
treecd740b4af25fe5184935fd67067025733f17b099 /highlevelilinstruction.cpp
parentcae26921cf2b2e564f66e58b77a3963fe36f6d2d (diff)
Add derived strings and string recognizer API
Diffstat (limited to 'highlevelilinstruction.cpp')
-rw-r--r--highlevelilinstruction.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/highlevelilinstruction.cpp b/highlevelilinstruction.cpp
index 964e1af9..6fe43618 100644
--- a/highlevelilinstruction.cpp
+++ b/highlevelilinstruction.cpp
@@ -1012,6 +1012,24 @@ void HighLevelILInstructionBase::ClearAttribute(BNILInstructionAttribute attribu
}
+std::optional<DerivedString> HighLevelILInstructionBase::GetDerivedStringReference() const
+{
+ return function->GetDerivedStringReferenceForExpr(exprIndex);
+}
+
+
+void HighLevelILInstructionBase::SetDerivedStringReference(const DerivedString& str)
+{
+ function->SetDerivedStringReferenceForExpr(exprIndex, str);
+}
+
+
+void HighLevelILInstructionBase::RemoveDerivedStringReference()
+{
+ function->RemoveDerivedStringReferenceForExpr(exprIndex);
+}
+
+
size_t HighLevelILInstructionBase::GetInstructionIndex() const
{
return function->GetInstructionForExpr(exprIndex);