diff --git a/include/LIEF/MachO/ChainedBindingInfo.hpp b/include/LIEF/MachO/ChainedBindingInfo.hpp index d395366ee5..b59442038e 100644 --- a/include/LIEF/MachO/ChainedBindingInfo.hpp +++ b/include/LIEF/MachO/ChainedBindingInfo.hpp @@ -88,6 +88,10 @@ class LIEF_API ChainedBindingInfo : public BindingInfo { return BindingInfo::TYPES::CHAINED; } + static bool classof(BindingInfo* info) { + return info->type() == BindingInfo::TYPES::CHAINED; + } + ~ChainedBindingInfo() override; diff --git a/include/LIEF/MachO/DyldBindingInfo.hpp b/include/LIEF/MachO/DyldBindingInfo.hpp index d06a4512a6..26cc819bba 100644 --- a/include/LIEF/MachO/DyldBindingInfo.hpp +++ b/include/LIEF/MachO/DyldBindingInfo.hpp @@ -73,8 +73,12 @@ class LIEF_API DyldBindingInfo : public BindingInfo { return BindingInfo::TYPES::DYLD_INFO; } - ~DyldBindingInfo() override; + static bool classof(BindingInfo* info) { + return info->type() == BindingInfo::TYPES::DYLD_INFO; + } + + ~DyldBindingInfo() override; void accept(Visitor& visitor) const override;