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

ExportEntry encapsulates the current-state-of-the-walk used when doing a non-recursive walk of the trie data structure. More...

#include "llvm/Object/MachO.h"

Public Member Functions

LLVM_ABI ExportEntry (Error *Err, const MachOObjectFile *O, ArrayRef< uint8_t > Trie)
LLVM_ABI StringRef name () const
LLVM_ABI uint64_t flags () const
LLVM_ABI uint64_t address () const
LLVM_ABI uint64_t other () const
LLVM_ABI StringRef otherName () const
LLVM_ABI uint32_t nodeOffset () const
LLVM_ABI bool operator== (const ExportEntry &) const
LLVM_ABI void moveNext ()

Friends

class MachOObjectFile

Detailed Description

ExportEntry encapsulates the current-state-of-the-walk used when doing a non-recursive walk of the trie data structure.

This allows you to iterate across all exported symbols using: Error Err = Error::success(); for (const llvm::object::ExportEntry &AnExport : Obj->exports(&Err)) { } if (Err) { report error ...

Definition at line 74 of file MachO.h.

Constructor & Destructor Documentation

◆ ExportEntry()

ExportEntry::ExportEntry ( Error * Err,
const MachOObjectFile * O,
ArrayRef< uint8_t > Trie )

Definition at line 2921 of file MachOObjectFile.cpp.

References MachOObjectFile, and T.

Referenced by operator==().

Member Function Documentation

◆ address()

uint64_t ExportEntry::address ( ) const

Definition at line 2972 of file MachOObjectFile.cpp.

◆ flags()

uint64_t ExportEntry::flags ( ) const

Definition at line 2968 of file MachOObjectFile.cpp.

◆ moveNext()

void ExportEntry::moveNext ( )

Definition at line 3197 of file MachOObjectFile.cpp.

References assert(), malformedError(), and llvm::Twine::utohexstr().

◆ name()

StringRef ExportEntry::name ( ) const

Definition at line 2964 of file MachOObjectFile.cpp.

◆ nodeOffset()

uint32_t ExportEntry::nodeOffset ( ) const

Definition at line 2987 of file MachOObjectFile.cpp.

◆ operator==()

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

Definition at line 2937 of file MachOObjectFile.cpp.

References ExportEntry(), and llvm::Other.

◆ other()

uint64_t ExportEntry::other ( ) const

Definition at line 2976 of file MachOObjectFile.cpp.

◆ otherName()

StringRef ExportEntry::otherName ( ) const

Definition at line 2980 of file MachOObjectFile.cpp.

References llvm::StringRef::back().

◆ MachOObjectFile

friend class MachOObjectFile
friend

Definition at line 91 of file MachO.h.

References llvm::Address, error, LLVM_ABI, MachOObjectFile, llvm::Offset, llvm::Other, and Ptr.

Referenced by ExportEntry(), and MachOObjectFile.


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