LLVM  4.0.0
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 <MachO.h>

Public Types

enum  Kind { Kind::Regular, Kind::Lazy, Kind::Weak }
 

Public Member Functions

 MachOBindEntry (ArrayRef< uint8_t > Opcodes, bool is64Bit, MachOBindEntry::Kind)
 
uint32_t segmentIndex () const
 
uint64_t segmentOffset () const
 
StringRef typeName () const
 
StringRef symbolName () const
 
uint32_t flags () const
 
int64_t addend () const
 
int ordinal () 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: for (const llvm::object::MachOBindEntry &Entry : Obj->bindTable()) { }

Definition at line 144 of file Object/MachO.h.

Member Enumeration Documentation

Enumerator
Regular 
Lazy 
Weak 

Definition at line 146 of file Object/MachO.h.

Constructor & Destructor Documentation

MachOBindEntry::MachOBindEntry ( ArrayRef< uint8_t >  Opcodes,
bool  is64Bit,
MachOBindEntry::Kind  BK 
)

Definition at line 2851 of file MachOObjectFile.cpp.

Member Function Documentation

int64_t MachOBindEntry::addend ( ) const

Definition at line 3073 of file MachOObjectFile.cpp.

uint32_t MachOBindEntry::flags ( ) const

Definition at line 3075 of file MachOObjectFile.cpp.

References fuzzer::Flags.

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

Definition at line 3079 of file MachOObjectFile.cpp.

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

int MachOBindEntry::ordinal ( ) const

Definition at line 3077 of file MachOObjectFile.cpp.

uint32_t MachOBindEntry::segmentIndex ( ) const

Definition at line 3055 of file MachOObjectFile.cpp.

uint64_t MachOBindEntry::segmentOffset ( ) const

Definition at line 3057 of file MachOObjectFile.cpp.

StringRef MachOBindEntry::symbolName ( ) const

Definition at line 3071 of file MachOObjectFile.cpp.

StringRef MachOBindEntry::typeName ( ) const

Friends And Related Function Documentation

friend class MachOObjectFile
friend

Definition at line 163 of file Object/MachO.h.


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