class MachORebaseEntry

Declaration

class MachORebaseEntry { /* full declaration omitted */ };

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 ...

Declared at: llvm/include/llvm/Object/MachO.h:168

Member Variables

private llvm::Error* E
private const llvm::object::MachOObjectFile* O
private ArrayRef<uint8_t> Opcodes
private const uint8_t* Ptr
private uint64_t SegmentOffset = 0
private int32_t SegmentIndex = -1
private uint64_t RemainingLoopCount = 0
private uint64_t AdvanceAmount = 0
private uint8_t RebaseType = 0
private uint8_t PointerSize
private bool Done = false

Method Overview

Methods

MachORebaseEntry(
    llvm::Error* Err,
    const llvm::object::MachOObjectFile* O,
    ArrayRef<uint8_t> opcodes,
    bool is64Bit)

Declared at: llvm/include/llvm/Object/MachO.h:170

Parameters

llvm::Error* Err
const llvm::object::MachOObjectFile* O
ArrayRef<uint8_t> opcodes
bool is64Bit

uint64_t address() const

Declared at: llvm/include/llvm/Object/MachO.h:178

void moveNext()

Declared at: llvm/include/llvm/Object/MachO.h:182

void moveToEnd()

Declared at: llvm/include/llvm/Object/MachO.h:188

void moveToFirst()

Declared at: llvm/include/llvm/Object/MachO.h:187

uint64_t readULEB128(const char** error)

Declared at: llvm/include/llvm/Object/MachO.h:189

Parameters

const char** error

llvm::StringRef sectionName() const

Declared at: llvm/include/llvm/Object/MachO.h:177

int32_t segmentIndex() const

Declared at: llvm/include/llvm/Object/MachO.h:173

llvm::StringRef segmentName() const

Declared at: llvm/include/llvm/Object/MachO.h:176

uint64_t segmentOffset() const

Declared at: llvm/include/llvm/Object/MachO.h:174

llvm::StringRef typeName() const

Declared at: llvm/include/llvm/Object/MachO.h:175