LLVM 22.0.0git
|
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 |
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 ...
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==().
uint64_t ExportEntry::address | ( | ) | const |
Definition at line 2972 of file MachOObjectFile.cpp.
uint64_t ExportEntry::flags | ( | ) | const |
Definition at line 2968 of file MachOObjectFile.cpp.
void ExportEntry::moveNext | ( | ) |
Definition at line 3197 of file MachOObjectFile.cpp.
References assert(), malformedError(), and llvm::Twine::utohexstr().
StringRef ExportEntry::name | ( | ) | const |
Definition at line 2964 of file MachOObjectFile.cpp.
uint32_t ExportEntry::nodeOffset | ( | ) | const |
Definition at line 2987 of file MachOObjectFile.cpp.
bool ExportEntry::operator== | ( | const ExportEntry & | Other | ) | const |
Definition at line 2937 of file MachOObjectFile.cpp.
References ExportEntry(), and llvm::Other.
uint64_t ExportEntry::other | ( | ) | const |
Definition at line 2976 of file MachOObjectFile.cpp.
StringRef ExportEntry::otherName | ( | ) | const |
Definition at line 2980 of file MachOObjectFile.cpp.
References llvm::StringRef::back().
|
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.