LLVM 20.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 | |
ExportEntry (Error *Err, const MachOObjectFile *O, ArrayRef< uint8_t > Trie) | |
StringRef | name () const |
uint64_t | flags () const |
uint64_t | address () const |
uint64_t | other () const |
StringRef | otherName () const |
uint32_t | nodeOffset () const |
bool | operator== (const ExportEntry &) const |
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 2920 of file MachOObjectFile.cpp.
uint64_t ExportEntry::address | ( | ) | const |
Definition at line 2971 of file MachOObjectFile.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back().
uint64_t ExportEntry::flags | ( | ) | const |
Definition at line 2967 of file MachOObjectFile.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back().
void ExportEntry::moveNext | ( | ) |
Definition at line 3196 of file MachOObjectFile.cpp.
References assert(), llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::ArrayRef< T >::begin(), llvm::SmallVectorBase< Size_T >::empty(), malformedError(), llvm::SmallVectorTemplateBase< T, bool >::pop_back(), llvm::SmallVectorImpl< T >::resize(), and llvm::Twine::utohexstr().
StringRef ExportEntry::name | ( | ) | const |
Definition at line 2963 of file MachOObjectFile.cpp.
uint32_t ExportEntry::nodeOffset | ( | ) | const |
Definition at line 2986 of file MachOObjectFile.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back(), and llvm::ArrayRef< T >::begin().
bool ExportEntry::operator== | ( | const ExportEntry & | Other | ) | const |
Definition at line 2936 of file MachOObjectFile.cpp.
References llvm::SmallString< InternalLen >::equals(), llvm::Other, and llvm::SmallVectorBase< Size_T >::size().
uint64_t ExportEntry::other | ( | ) | const |
Definition at line 2975 of file MachOObjectFile.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back().
StringRef ExportEntry::otherName | ( | ) | const |
Definition at line 2979 of file MachOObjectFile.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back().
|
friend |