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

MachOBindEntry encapsulates the current state in the decompression of binding opcodes. More...

#include "llvm/Object/MachO.h"

Public Types

enum class  Kind { Regular , Lazy , Weak }

Public Member Functions

LLVM_ABI MachOBindEntry (Error *Err, const MachOObjectFile *O, ArrayRef< uint8_t > Opcodes, bool is64Bit, MachOBindEntry::Kind)
LLVM_ABI int32_t segmentIndex () const
LLVM_ABI uint64_t segmentOffset () const
LLVM_ABI StringRef typeName () const
LLVM_ABI StringRef symbolName () const
LLVM_ABI uint32_t flags () const
LLVM_ABI int64_t addend () const
LLVM_ABI int ordinal () const
LLVM_ABI StringRef segmentName () const
LLVM_ABI StringRef sectionName () const
LLVM_ABI uint64_t address () const
LLVM_ABI bool operator== (const MachOBindEntry &) const
LLVM_ABI void moveNext ()

Friends

class MachOObjectFile

Detailed Description

MachOBindEntry encapsulates the current state in the decompression of binding opcodes.

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

Definition at line 215 of file MachO.h.

Member Enumeration Documentation

◆ Kind

Enumerator
Regular 
Lazy 
Weak 

Definition at line 217 of file MachO.h.

Constructor & Destructor Documentation

◆ MachOBindEntry()

MachOBindEntry::MachOBindEntry ( Error * Err,
const MachOObjectFile * O,
ArrayRef< uint8_t > Opcodes,
bool is64Bit,
MachOBindEntry::Kind BK )

Definition at line 3818 of file MachOObjectFile.cpp.

References is64Bit(), and MachOObjectFile.

Referenced by operator==().

Member Function Documentation

◆ addend()

int64_t MachOBindEntry::addend ( ) const

Definition at line 4319 of file MachOObjectFile.cpp.

◆ address()

uint64_t MachOBindEntry::address ( ) const

Definition at line 4339 of file MachOObjectFile.cpp.

◆ flags()

uint32_t MachOBindEntry::flags ( ) const

Definition at line 4321 of file MachOObjectFile.cpp.

◆ moveNext()

◆ operator==()

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

Definition at line 4343 of file MachOObjectFile.cpp.

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

◆ ordinal()

int MachOBindEntry::ordinal ( ) const

Definition at line 4323 of file MachOObjectFile.cpp.

◆ sectionName()

StringRef MachOBindEntry::sectionName ( ) const

Definition at line 4333 of file MachOObjectFile.cpp.

◆ segmentIndex()

int32_t MachOBindEntry::segmentIndex ( ) const

Definition at line 4301 of file MachOObjectFile.cpp.

◆ segmentName()

StringRef MachOBindEntry::segmentName ( ) const

Definition at line 4327 of file MachOObjectFile.cpp.

◆ segmentOffset()

uint64_t MachOBindEntry::segmentOffset ( ) const

Definition at line 4303 of file MachOObjectFile.cpp.

◆ symbolName()

StringRef MachOBindEntry::symbolName ( ) const

Definition at line 4317 of file MachOObjectFile.cpp.

◆ typeName()

◆ MachOObjectFile

friend class MachOObjectFile
friend

Definition at line 240 of file MachO.h.

References error, and MachOObjectFile.

Referenced by MachOBindEntry(), and MachOObjectFile.


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