LLVM: llvm::object::MachORebaseEntry Class Reference (original) (raw)

MachORebaseEntry encapsulates the current state in the decompression of rebasing opcodes. More...

#include "[llvm/Object/MachO.h](Object%5F2MachO%5F8h%5Fsource.html)"

Public Member Functions
LLVM_ABI MachORebaseEntry (Error *Err, const MachOObjectFile *O, ArrayRef< uint8_t > opcodes, bool is64Bit)
LLVM_ABI int32_t segmentIndex () const
LLVM_ABI uint64_t segmentOffset () const
LLVM_ABI StringRef typeName () const
LLVM_ABI StringRef segmentName () const
LLVM_ABI StringRef sectionName () const
LLVM_ABI uint64_t address () const
LLVM_ABI bool operator== (const MachORebaseEntry &) const
LLVM_ABI void moveNext ()
Friends
class MachOObjectFile

Detailed Description

MachORebaseEntry encapsulates the current state in the decompression of rebasing opcodes.

This allows you to iterate through the compressed table of rebasing using: Error Err = Error::success(); for (const llvm::object::MachORebaseEntry &Entry : Obj->rebaseTable(&Err)) { } if (Err) { report error ...

Definition at line 169 of file MachO.h.

Constructor & Destructor Documentation

Member Function Documentation

address()

uint64_t MachORebaseEntry::address ( ) const

moveNext()

void MachORebaseEntry::moveNext ( )

Definition at line 3517 of file MachOObjectFile.cpp.

References llvm::Count, llvm::dbgs(), DEBUG_WITH_TYPE, error, llvm::format(), malformedError(), 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, llvm::MachO::REBASE_OPCODE_SET_TYPE_IMM, llvm::MachO::REBASE_TYPE_TEXT_PCREL32, and llvm::Twine::utohexstr().

operator==()

sectionName()

StringRef MachORebaseEntry::sectionName ( ) const

segmentIndex()

int32_t MachORebaseEntry::segmentIndex ( ) const

segmentName()

StringRef MachORebaseEntry::segmentName ( ) const

segmentOffset()

uint64_t MachORebaseEntry::segmentOffset ( ) const

typeName()

StringRef MachORebaseEntry::typeName ( ) const

MachOObjectFile


The documentation for this class was generated from the following files: