From a719ec03c082ad64dece5dcae8e386bd65879843 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 25 Jun 2021 18:10:08 -0400 Subject: Give tag types unique ids and stop relying on unique names --- function.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index 58968938..36d5a313 100644 --- a/function.cpp +++ b/function.cpp @@ -1647,7 +1647,7 @@ void Function::RemoveUserFunctionTag(Ref tag) Ref Function::CreateAutoAddressTag(Architecture* arch, uint64_t addr, const std::string& tagTypeName, const std::string& data, bool unique) { - Ref tagType = GetView()->GetTagType(tagTypeName); + Ref tagType = GetView()->GetTagTypeByName(tagTypeName); if (!tagType) return nullptr; @@ -1677,7 +1677,7 @@ Ref Function::CreateAutoAddressTag(Architecture* arch, uint64_t addr, Ref Function::CreateUserAddressTag(Architecture* arch, uint64_t addr, const std::string& tagTypeName, const std::string& data, bool unique) { - Ref tagType = GetView()->GetTagType(tagTypeName); + Ref tagType = GetView()->GetTagTypeByName(tagTypeName); if (!tagType) return nullptr; @@ -1706,7 +1706,7 @@ Ref Function::CreateUserAddressTag(Architecture* arch, uint64_t addr, Ref Function::CreateAutoFunctionTag(const std::string& tagTypeName, const std::string& data, bool unique) { - Ref tagType = GetView()->GetTagType(tagTypeName); + Ref tagType = GetView()->GetTagTypeByName(tagTypeName); if (!tagType) return nullptr; @@ -1736,7 +1736,7 @@ Ref Function::CreateAutoFunctionTag(Ref tagType, const std::string Ref Function::CreateUserFunctionTag(const std::string& tagTypeName, const std::string& data, bool unique) { - Ref tagType = GetView()->GetTagType(tagTypeName); + Ref tagType = GetView()->GetTagTypeByName(tagTypeName); if (!tagType) return nullptr; -- cgit v1.3.1