LLVM  5.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 "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; for (const llvm::object::MachOBindEntry &Entry : Obj->bindTable(&Err)) { } if (Err) { report error ...

Definition at line 205 of file MachO.h.

Member Enumeration Documentation

Enumerator
Regular 
Lazy 
Weak 

Definition at line 207 of file MachO.h.

Constructor & Destructor Documentation

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

Definition at line 3164 of file MachOObjectFile.cpp.

Member Function Documentation

int64_t MachOBindEntry::addend ( ) const

Definition at line 3652 of file MachOObjectFile.cpp.

uint64_t MachOBindEntry::address ( ) const
uint32_t MachOBindEntry::flags ( ) const

Definition at line 3654 of file MachOObjectFile.cpp.

References Flags.

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

Definition at line 3676 of file MachOObjectFile.cpp.

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

int MachOBindEntry::ordinal ( ) const

Definition at line 3656 of file MachOObjectFile.cpp.

StringRef MachOBindEntry::sectionName ( ) const
int32_t MachOBindEntry::segmentIndex ( ) const

Definition at line 3634 of file MachOObjectFile.cpp.

StringRef MachOBindEntry::segmentName ( ) const
uint64_t MachOBindEntry::segmentOffset ( ) const

Definition at line 3636 of file MachOObjectFile.cpp.

References SegmentOffset().

StringRef MachOBindEntry::symbolName ( ) const

Definition at line 3650 of file MachOObjectFile.cpp.

StringRef MachOBindEntry::typeName ( ) const

Friends And Related Function Documentation

friend class MachOObjectFile
friend

Definition at line 229 of file MachO.h.


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