summaryrefslogtreecommitdiff
path: root/highlevelil.cpp
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2020-11-16 17:51:46 +0800
committerXusheng <xusheng@vector35.com>2021-02-17 12:05:47 +0800
commitd9b1df165f9daad6a5229718ecd0ee50a5ef6bf1 (patch)
tree6307b8c16c80f8203bdb96ebc3d54a8d9f10b3bf /highlevelil.cpp
parentb651141704a555cf0b6c53152ab0f70d011ec8af (diff)
add support for type xref and variable xref
Diffstat (limited to 'highlevelil.cpp')
-rw-r--r--highlevelil.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/highlevelil.cpp b/highlevelil.cpp
index 6c304d0e..a355c561 100644
--- a/highlevelil.cpp
+++ b/highlevelil.cpp
@@ -445,6 +445,13 @@ vector<DisassemblyTextLine> HighLevelILFunction::GetExprText(const HighLevelILIn
}
+vector<DisassemblyTextLine> HighLevelILFunction::GetInstructionText(size_t i, bool asFullAst)
+{
+ HighLevelILInstruction instr = GetInstruction(i);
+ return GetExprText(instr, asFullAst);
+}
+
+
Confidence<Ref<Type>> HighLevelILFunction::GetExprType(size_t expr)
{
BNTypeWithConfidence result = BNGetHighLevelILExprType(m_object, expr);