diff --git a/include/LIEF/MachO/RelocationDyld.hpp b/include/LIEF/MachO/RelocationDyld.hpp index 181b8559ce..3498c5d502 100644 --- a/include/LIEF/MachO/RelocationDyld.hpp +++ b/include/LIEF/MachO/RelocationDyld.hpp @@ -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; diff --git a/include/LIEF/MachO/RelocationFixup.hpp b/include/LIEF/MachO/RelocationFixup.hpp index b08c173499..fb2d5b2b3a 100644 --- a/include/LIEF/MachO/RelocationFixup.hpp +++ b/include/LIEF/MachO/RelocationFixup.hpp @@ -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 { diff --git a/include/LIEF/MachO/RelocationObject.hpp b/include/LIEF/MachO/RelocationObject.hpp index a86a4604a1..93546c3495 100644 --- a/include/LIEF/MachO/RelocationObject.hpp +++ b/include/LIEF/MachO/RelocationObject.hpp @@ -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 { diff --git a/src/MachO/Relocation.cpp b/src/MachO/Relocation.cpp index 47da6c7e2a..2659c00de0 100644 --- a/src/MachO/Relocation.cpp +++ b/src/MachO/Relocation.cpp @@ -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();