summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2018-08-02 22:46:43 -0400
committerRusty Wagner <rusty@vector35.com>2018-08-02 22:46:43 -0400
commit7c4025df43511852ecb86d8ab608e1da476d90de (patch)
treea70c900c0fe766f2c954274be74d7e8f47dc6ace /function.cpp
parent657bc3ff2d000508bd4b4468e83ce37591655e17 (diff)
Add API to query if an assembly instruction is a call
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp
index ae6d3a6b..1236cec6 100644
--- a/function.cpp
+++ b/function.cpp
@@ -1116,6 +1116,12 @@ Confidence<int32_t> Function::GetCallRegisterStackAdjustment(Architecture* arch,
}
+bool Function::IsCallInstruction(Architecture* arch, uint64_t addr)
+{
+ return BNIsCallInstruction(m_object, arch->GetObject(), addr);
+}
+
+
vector<vector<InstructionTextToken>> Function::GetBlockAnnotations(Architecture* arch, uint64_t addr)
{
size_t count;