diff options
| author | rollsafe <rollsafe@users.noreply.github.com> | 2019-05-30 17:27:08 -0400 |
|---|---|---|
| committer | rollsafe <rollsafe@users.noreply.github.com> | 2019-05-31 16:20:45 -0400 |
| commit | 10b6e9ae50c35cd5582d2325bfa767ce8083220e (patch) | |
| tree | 9c7ee5a20798df9854ac3e56b69a541c0fd05166 /function.cpp | |
| parent | 4452de9f22a8a9666f159a9fd5d66b67223ce2e5 (diff) | |
Support adding user-defined xrefs
Diffstat (limited to 'function.cpp')
| -rw-r--r-- | function.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |
