diff options
Diffstat (limited to 'include/llvm/Object/MachOObject.h')
-rw-r--r-- | include/llvm/Object/MachOObject.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Object/MachOObject.h b/include/llvm/Object/MachOObject.h index 4900768681..af235e2b0f 100644 --- a/include/llvm/Object/MachOObject.h +++ b/include/llvm/Object/MachOObject.h @@ -11,6 +11,7 @@ #define LLVM_OBJECT_MACHOOBJECT_H #include <string> +#include "llvm/ADT/InMemoryStruct.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/Object/MachOFormat.h" @@ -88,6 +89,7 @@ public: /// @{ bool isLittleEndian() const { return IsLittleEndian; } + bool isSwappedEndian() const { return IsSwappedEndian; } bool is64Bit() const { return Is64Bit; } unsigned getHeaderSize() const { @@ -111,6 +113,13 @@ public: /// \brief Retrieve the information for the given load command. const LoadCommandInfo &getLoadCommandInfo(unsigned Index) const; + void ReadSegmentLoadCommand( + const LoadCommandInfo &LCI, + InMemoryStruct<macho::SegmentLoadCommand> &Res) const; + void ReadSegment64LoadCommand( + const LoadCommandInfo &LCI, + InMemoryStruct<macho::Segment64LoadCommand> &Res) const; + /// @} }; |