LLVM  14.0.0git
Public Member Functions | Friends | List of all members
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

 MachORebaseEntry (Error *Err, const MachOObjectFile *O, ArrayRef< uint8_t > opcodes, bool is64Bit)
 
int32_t segmentIndex () const
 
uint64_t segmentOffset () const
 
StringRef typeName () const
 
StringRef segmentName () const
 
StringRef sectionName () const
 
uint64_t address () const
 
bool operator== (const MachORebaseEntry &) const
 
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 167 of file MachO.h.

Constructor & Destructor Documentation

◆ MachORebaseEntry()

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

Definition at line 3145 of file MachOObjectFile.cpp.

Member Function Documentation

◆ address()

uint64_t MachORebaseEntry::address ( ) const

Definition at line 3449 of file MachOObjectFile.cpp.

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

◆ moveNext()

void MachORebaseEntry::moveNext ( )

◆ operator==()

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

Definition at line 3453 of file MachOObjectFile.cpp.

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

◆ sectionName()

StringRef MachORebaseEntry::sectionName ( ) const

Definition at line 3443 of file MachOObjectFile.cpp.

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

◆ segmentIndex()

int32_t MachORebaseEntry::segmentIndex ( ) const

Definition at line 3419 of file MachOObjectFile.cpp.

◆ segmentName()

StringRef MachORebaseEntry::segmentName ( ) const

Definition at line 3437 of file MachOObjectFile.cpp.

References llvm::RISCVFenceField::O.

◆ segmentOffset()

uint64_t MachORebaseEntry::segmentOffset ( ) const

Definition at line 3421 of file MachOObjectFile.cpp.

References SegmentOffset().

◆ typeName()

StringRef MachORebaseEntry::typeName ( ) const

Friends And Related Function Documentation

◆ MachOObjectFile

friend class MachOObjectFile
friend

Definition at line 184 of file MachO.h.


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