summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrollsafe <rollsafe@users.noreply.github.com>2019-06-06 20:12:59 -0400
committerrollsafe <rollsafe@users.noreply.github.com>2019-06-06 20:12:59 -0400
commit95a4b66fd724cd0a4174ad2ecd8608a8f918aad5 (patch)
tree7c1cdab71c68d523d5cfb4b8c66884d49fb813e1
parentd15cca8c264cd442bbe1427844dc0d76d19d17df (diff)
Rename Function::AddUserCodeReference and Function::RemoveUserCodeReference
-rw-r--r--binaryninjaapi.h4
-rw-r--r--binaryninjacore.h4
-rw-r--r--function.cpp8
3 files changed, 8 insertions, 8 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 8d34bef3..21dd0b6c 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -2593,8 +2593,8 @@ namespace BinaryNinja
void SetComment(const std::string& comment);
void SetCommentForAddress(uint64_t addr, const std::string& comment);
- void AddUserCodeRef(Architecture* fromArch, uint64_t fromAddr, uint64_t toAddr);
- void RemoveUserCodeRef(Architecture* fromArch, uint64_t fromAddr, uint64_t toAddr);
+ void AddUserCodeReference(Architecture* fromArch, uint64_t fromAddr, uint64_t toAddr);
+ void RemoveUserCodeReference(Architecture* fromArch, uint64_t fromAddr, uint64_t toAddr);
Ref<LowLevelILFunction> GetLowLevelIL() const;
size_t GetLowLevelILForInstruction(Architecture* arch, uint64_t addr);
diff --git a/binaryninjacore.h b/binaryninjacore.h
index d7c43150..95c70b4e 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -2528,8 +2528,8 @@ extern "C"
BINARYNINJACOREAPI void BNSetFunctionComment(BNFunction* func, const char* comment);
BINARYNINJACOREAPI void BNSetCommentForAddress(BNFunction* func, uint64_t addr, const char* comment);
- BINARYNINJACOREAPI void BNAddUserCodeRef(BNFunction* func, BNArchitecture* fromArch, uint64_t fromAddr, uint64_t toAddr);
- BINARYNINJACOREAPI void BNRemoveUserCodeRef(BNFunction* func, BNArchitecture* fromArch, uint64_t fromAddr, uint64_t toAddr);
+ BINARYNINJACOREAPI void BNAddUserCodeReference(BNFunction* func, BNArchitecture* fromArch, uint64_t fromAddr, uint64_t toAddr);
+ BINARYNINJACOREAPI void BNRemoveUserCodeReference(BNFunction* func, BNArchitecture* fromArch, uint64_t fromAddr, uint64_t toAddr);
BINARYNINJACOREAPI BNBasicBlock* BNNewBasicBlockReference(BNBasicBlock* block);
BINARYNINJACOREAPI void BNFreeBasicBlock(BNBasicBlock* block);
diff --git a/function.cpp b/function.cpp
index 2a3e333f..66fd870c 100644
--- a/function.cpp
+++ b/function.cpp
@@ -246,15 +246,15 @@ void Function::SetCommentForAddress(uint64_t addr, const string& comment)
}
-void Function::AddUserCodeRef(Architecture* fromArch, uint64_t fromAddr, uint64_t toAddr)
+void Function::AddUserCodeReference(Architecture* fromArch, uint64_t fromAddr, uint64_t toAddr)
{
- BNAddUserCodeRef(m_object, fromArch->GetObject(), fromAddr, toAddr);
+ BNAddUserCodeReference(m_object, fromArch->GetObject(), fromAddr, toAddr);
}
-void Function::RemoveUserCodeRef(Architecture* fromArch, uint64_t fromAddr, uint64_t toAddr)
+void Function::RemoveUserCodeReference(Architecture* fromArch, uint64_t fromAddr, uint64_t toAddr)
{
- BNRemoveUserCodeRef(m_object, fromArch->GetObject(), fromAddr, toAddr);
+ BNRemoveUserCodeReference(m_object, fromArch->GetObject(), fromAddr, toAddr);
}