LLVM  14.0.0git
Public Types | Public Member Functions | Friends | List of all members
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  Kind { Kind::Regular, Kind::Lazy, Kind::Weak }
 

Public Member Functions

 MachOBindEntry (Error *Err, const MachOObjectFile *O, ArrayRef< uint8_t > Opcodes, bool is64Bit, MachOBindEntry::Kind)
 
int32_t segmentIndex () const
 
uint64_t segmentOffset () const
 
StringRef typeName () const
 
StringRef symbolName () const
 
uint32_t flags () const
 
int64_t addend () const
 
int ordinal () const
 
StringRef segmentName () const
 
StringRef sectionName () const
 
uint64_t address () const
 
bool operator== (const MachOBindEntry &) const
 
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 211 of file MachO.h.

Member Enumeration Documentation

◆ Kind

Enumerator
Regular 
Lazy 
Weak 

Definition at line 213 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 3482 of file MachOObjectFile.cpp.

Member Function Documentation

◆ addend()

int64_t MachOBindEntry::addend ( ) const

Definition at line 3981 of file MachOObjectFile.cpp.

◆ address()

uint64_t MachOBindEntry::address ( ) const

Definition at line 4001 of file MachOObjectFile.cpp.

References llvm::RISCVFenceField::O, and SegmentOffset().

◆ flags()

uint32_t MachOBindEntry::flags ( ) const

Definition at line 3983 of file MachOObjectFile.cpp.

◆ moveNext()

void MachOBindEntry::moveNext ( )

◆ operator==()

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

Definition at line 4005 of file MachOObjectFile.cpp.

References assert(), llvm::ArrayRef< T >::data(), and Other.

◆ ordinal()

int MachOBindEntry::ordinal ( ) const

Definition at line 3985 of file MachOObjectFile.cpp.

◆ sectionName()

StringRef MachOBindEntry::sectionName ( ) const

Definition at line 3995 of file MachOObjectFile.cpp.

References llvm::RISCVFenceField::O, and SegmentOffset().

◆ segmentIndex()

int32_t MachOBindEntry::segmentIndex ( ) const

Definition at line 3963 of file MachOObjectFile.cpp.

◆ segmentName()

StringRef MachOBindEntry::segmentName ( ) const

Definition at line 3989 of file MachOObjectFile.cpp.

References llvm::RISCVFenceField::O.

◆ segmentOffset()

uint64_t MachOBindEntry::segmentOffset ( ) const

Definition at line 3965 of file MachOObjectFile.cpp.

References SegmentOffset().

◆ symbolName()

StringRef MachOBindEntry::symbolName ( ) const

◆ typeName()

StringRef MachOBindEntry::typeName ( ) const

Friends And Related Function Documentation

◆ MachOObjectFile

friend class MachOObjectFile
friend

Definition at line 235 of file MachO.h.


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