Skip to content

Commit

Permalink
Impl classof()
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Nov 10, 2023
1 parent 5280c51 commit b113795
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/LIEF/MachO/ChainedBindingInfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down
6 changes: 5 additions & 1 deletion include/LIEF/MachO/DyldBindingInfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b113795

Please sign in to comment.