diff options
| author | Glenn Smith <glenn@vector35.com> | 2021-06-25 18:10:08 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2021-07-01 01:32:28 -0400 |
| commit | a719ec03c082ad64dece5dcae8e386bd65879843 (patch) | |
| tree | 3df98c553ecd3cf187edec9683c1c9ae280297fd /function.cpp | |
| parent | 8f0f90294096ed12e099b0572e28b531636e4fd8 (diff) | |
Give tag types unique ids and stop relying on unique names
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 58968938..36d5a313 100644 --- a/function.cpp +++ b/function.cpp @@ -1647,7 +1647,7 @@ void Function::RemoveUserFunctionTag(Ref<Tag> tag) Ref<Tag> Function::CreateAutoAddressTag(Architecture* arch, uint64_t addr, const std::string& tagTypeName, const std::string& data, bool unique) { - Ref<TagType> tagType = GetView()->GetTagType(tagTypeName); + Ref<TagType> tagType = GetView()->GetTagTypeByName(tagTypeName); if (!tagType) return nullptr; @@ -1677,7 +1677,7 @@ Ref<Tag> Function::CreateAutoAddressTag(Architecture* arch, uint64_t addr, Ref<T Ref<Tag> Function::CreateUserAddressTag(Architecture* arch, uint64_t addr, const std::string& tagTypeName, const std::string& data, bool unique) { - Ref<TagType> tagType = GetView()->GetTagType(tagTypeName); + Ref<TagType> tagType = GetView()->GetTagTypeByName(tagTypeName); if (!tagType) return nullptr; @@ -1706,7 +1706,7 @@ Ref<Tag> Function::CreateUserAddressTag(Architecture* arch, uint64_t addr, Ref<T Ref<Tag> Function::CreateAutoFunctionTag(const std::string& tagTypeName, const std::string& data, bool unique) { - Ref<TagType> tagType = GetView()->GetTagType(tagTypeName); + Ref<TagType> tagType = GetView()->GetTagTypeByName(tagTypeName); if (!tagType) return nullptr; @@ -1736,7 +1736,7 @@ Ref<Tag> Function::CreateAutoFunctionTag(Ref<TagType> tagType, const std::string Ref<Tag> Function::CreateUserFunctionTag(const std::string& tagTypeName, const std::string& data, bool unique) { - Ref<TagType> tagType = GetView()->GetTagType(tagTypeName); + Ref<TagType> tagType = GetView()->GetTagTypeByName(tagTypeName); if (!tagType) return nullptr; |
