LLVM API Documentation
#include <MachO.h>
Public Member Functions | |
MachORebaseEntry (ArrayRef< uint8_t > opcodes, bool is64Bit) | |
uint32_t | segmentIndex () const |
uint64_t | segmentOffset () const |
StringRef | typeName () const |
bool | operator== (const MachORebaseEntry &) const |
void | moveNext () |
Friends | |
class | MachOObjectFile |
MachORebaseEntry encapsulates the current state in the decompression of rebasing opcodes. This allows you to iterate through the compressed table of rebasing using: for (const llvm::object::MachORebaseEntry &Entry : Obj->rebaseTable()) { }
Definition at line 108 of file Object/MachO.h.
MachORebaseEntry::MachORebaseEntry | ( | ArrayRef< uint8_t > | opcodes, |
bool | is64Bit | ||
) |
Definition at line 1701 of file MachOObjectFile.cpp.
void MachORebaseEntry::moveNext | ( | ) |
Definition at line 1717 of file MachOObjectFile.cpp.
References llvm::dbgs(), DEBUG_WITH_TYPE, llvm::ArrayRef< T >::end(), llvm::format(), llvm::MachO::REBASE_IMMEDIATE_MASK, llvm::MachO::REBASE_OPCODE_ADD_ADDR_IMM_SCALED, llvm::MachO::REBASE_OPCODE_ADD_ADDR_ULEB, llvm::MachO::REBASE_OPCODE_DO_REBASE_ADD_ADDR_ULEB, llvm::MachO::REBASE_OPCODE_DO_REBASE_IMM_TIMES, llvm::MachO::REBASE_OPCODE_DO_REBASE_ULEB_TIMES, llvm::MachO::REBASE_OPCODE_DO_REBASE_ULEB_TIMES_SKIPPING_ULEB, llvm::MachO::REBASE_OPCODE_DONE, llvm::MachO::REBASE_OPCODE_MASK, llvm::MachO::REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB, and llvm::MachO::REBASE_OPCODE_SET_TYPE_IMM.
bool MachORebaseEntry::operator== | ( | const MachORebaseEntry & | Other | ) | const |
Definition at line 1849 of file MachOObjectFile.cpp.
uint32_t MachORebaseEntry::segmentIndex | ( | ) | const |
Definition at line 1833 of file MachOObjectFile.cpp.
uint64_t MachORebaseEntry::segmentOffset | ( | ) | const |
Definition at line 1835 of file MachOObjectFile.cpp.
StringRef MachORebaseEntry::typeName | ( | ) | const |
Definition at line 1837 of file MachOObjectFile.cpp.
References llvm::MachO::REBASE_TYPE_POINTER, llvm::MachO::REBASE_TYPE_TEXT_ABSOLUTE32, and llvm::MachO::REBASE_TYPE_TEXT_PCREL32.
friend class MachOObjectFile [friend] |
Definition at line 121 of file Object/MachO.h.