Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Jun 22, 2024
1 parent 93245d3 commit 2b68ae5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions include/LIEF/MachO/RelocationDyld.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class LIEF_API RelocationDyld : public Relocation {

//! Origin of the relocation. For this concrete object, it
//! should be Relocation::ORIGIN::DYLDINFO
Relocation::ORIGIN origin() const override {
return Relocation::ORIGIN::DYLDINFO;
ORIGIN origin() const override {
return ORIGIN::DYLDINFO;
}

void pc_relative(bool val) override;
Expand Down
4 changes: 2 additions & 2 deletions include/LIEF/MachO/RelocationFixup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class LIEF_API RelocationFixup : public Relocation {

//! Origin of the relocation. For this concrete object, it
//! should be Relocation::ORIGIN::CHAINED_FIXUPS
Relocation::ORIGIN origin() const override {
return Relocation::ORIGIN::CHAINED_FIXUPS;
ORIGIN origin() const override {
return ORIGIN::CHAINED_FIXUPS;
}

DYLD_CHAINED_PTR_FORMAT ptr_format() const {
Expand Down
4 changes: 2 additions & 2 deletions include/LIEF/MachO/RelocationObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ class LIEF_API RelocationObject : public Relocation {
int32_t value() const;

//! Origin of the relocation. For this object it should be Relocation::ORIGIN::RELOC_TABLE)
Relocation::ORIGIN origin() const override {
return Relocation::ORIGIN::RELOC_TABLE;
ORIGIN origin() const override {
return ORIGIN::RELOC_TABLE;
}

void pc_relative(bool val) override {
Expand Down
3 changes: 0 additions & 3 deletions src/MachO/Relocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ void Relocation::accept(Visitor& visitor) const {
}

std::ostream& Relocation::print(std::ostream& os) const {
//os << std::hex;
//os << std::left;

std::string symbol_name;
if (const Symbol* sym = symbol()) {
symbol_name = sym->name();
Expand Down

0 comments on commit 2b68ae5

Please sign in to comment.