LLVM 22.0.0git
llvm::object::MachORebaseEntry Class Reference

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

#include "llvm/Object/MachO.h"

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 171 of file MachO.h.

Constructor & Destructor Documentation

◆ MachORebaseEntry()

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

Definition at line 3479 of file MachOObjectFile.cpp.

References is64Bit(), and MachOObjectFile.

Referenced by operator==().

Member Function Documentation

◆ address()

uint64_t MachORebaseEntry::address ( ) const

Definition at line 3785 of file MachOObjectFile.cpp.

◆ moveNext()

◆ operator==()

bool MachORebaseEntry::operator== ( const MachORebaseEntry & Other) const

Definition at line 3789 of file MachOObjectFile.cpp.

References assert(), MachORebaseEntry(), and llvm::Other.

◆ sectionName()

StringRef MachORebaseEntry::sectionName ( ) const

Definition at line 3779 of file MachOObjectFile.cpp.

◆ segmentIndex()

int32_t MachORebaseEntry::segmentIndex ( ) const

Definition at line 3755 of file MachOObjectFile.cpp.

◆ segmentName()

StringRef MachORebaseEntry::segmentName ( ) const

Definition at line 3773 of file MachOObjectFile.cpp.

◆ segmentOffset()

uint64_t MachORebaseEntry::segmentOffset ( ) const

Definition at line 3757 of file MachOObjectFile.cpp.

◆ typeName()

◆ MachOObjectFile

friend class MachOObjectFile
friend

Definition at line 188 of file MachO.h.

References error, and MachOObjectFile.

Referenced by MachOObjectFile, and MachORebaseEntry().


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