summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
authorStephen Tong <v35stong@users.noreply.github.com>2019-05-23 18:45:59 -0400
committerStephen Tong <v35stong@users.noreply.github.com>2019-05-28 13:17:54 -0400
commit9c570077a562b4c45e80e6d0cf32f00909e8ebd1 (patch)
tree7e5f3d951ae4d9ae707bb679780df2ac1e1f9dbb /function.cpp
parent46ea950b5d147e14348806ab8ce6b0265efee06f (diff)
Redo/Undo support for user-defined xrefs
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp
index 7ef0926c..54c91541 100644
--- a/function.cpp
+++ b/function.cpp
@@ -245,12 +245,19 @@ void Function::SetCommentForAddress(uint64_t addr, const string& comment)
BNSetCommentForAddress(m_object, addr, comment.c_str());
}
+
void Function::SetUserXref(uint64_t addr, uint64_t target)
{
BNSetUserXref(m_object, addr, target);
}
+void Function::RemoveUserXref(uint64_t addr, uint64_t target)
+{
+ BNRemoveUserXref(m_object, addr, target);
+}
+
+
Ref<LowLevelILFunction> Function::GetLowLevelIL() const
{
return new LowLevelILFunction(BNGetFunctionLowLevelIL(m_object));