From 10b6e9ae50c35cd5582d2325bfa767ce8083220e Mon Sep 17 00:00:00 2001 From: rollsafe Date: Thu, 30 May 2019 17:27:08 -0400 Subject: Support adding user-defined xrefs --- function.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index 54c91541..2a3e333f 100644 --- a/function.cpp +++ b/function.cpp @@ -246,15 +246,15 @@ void Function::SetCommentForAddress(uint64_t addr, const string& comment) } -void Function::SetUserXref(uint64_t addr, uint64_t target) +void Function::AddUserCodeRef(Architecture* fromArch, uint64_t fromAddr, uint64_t toAddr) { - BNSetUserXref(m_object, addr, target); + BNAddUserCodeRef(m_object, fromArch->GetObject(), fromAddr, toAddr); } -void Function::RemoveUserXref(uint64_t addr, uint64_t target) +void Function::RemoveUserCodeRef(Architecture* fromArch, uint64_t fromAddr, uint64_t toAddr) { - BNRemoveUserXref(m_object, addr, target); + BNRemoveUserCodeRef(m_object, fromArch->GetObject(), fromAddr, toAddr); } -- cgit v1.3.1