class ExportEntry
Declaration
class ExportEntry { /* full declaration omitted */ };
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 ...
Declared at: llvm/include/llvm/Object/MachO.h:73
Member Variables
- private llvm::Error* E
- private const llvm::object::MachOObjectFile* O
- private ArrayRef<uint8_t> Trie
- private SmallString<256> CumulativeString
- private llvm::object::ExportEntry::NodeList Stack
- private bool Done = false
Method Overview
- public ExportEntry(llvm::Error * Err, const llvm::object::MachOObjectFile * O, ArrayRef<uint8_t> Trie)
- public uint64_t address() const
- public uint64_t flags() const
- public void moveNext()
- private void moveToEnd()
- private void moveToFirst()
- public llvm::StringRef name() const
- public uint32_t nodeOffset() const
- private iterator_range<llvm::object::ExportEntry::node_iterator> nodes() const
- public uint64_t other() const
- public llvm::StringRef otherName() const
- private void pushDownUntilBottom()
- private void pushNode(uint64_t Offset)
- private uint64_t readULEB128(const uint8_t *& p, const char ** error)
Methods
¶ExportEntry(
llvm::Error* Err,
const llvm::object::MachOObjectFile* O,
ArrayRef<uint8_t> Trie)
ExportEntry(
llvm::Error* Err,
const llvm::object::MachOObjectFile* O,
ArrayRef<uint8_t> Trie)
Declared at: llvm/include/llvm/Object/MachO.h:75
Parameters
- llvm::Error* Err
- const llvm::object::MachOObjectFile* O
- ArrayRef<uint8_t> Trie
¶uint64_t address() const
uint64_t address() const
Declared at: llvm/include/llvm/Object/MachO.h:79
¶uint64_t flags() const
uint64_t flags() const
Declared at: llvm/include/llvm/Object/MachO.h:78
¶void moveNext()
void moveNext()
Declared at: llvm/include/llvm/Object/MachO.h:86
¶void moveToEnd()
void moveToEnd()
Declared at: llvm/include/llvm/Object/MachO.h:92
¶void moveToFirst()
void moveToFirst()
Declared at: llvm/include/llvm/Object/MachO.h:91
¶llvm::StringRef name() const
llvm::StringRef name() const
Declared at: llvm/include/llvm/Object/MachO.h:77
¶uint32_t nodeOffset() const
uint32_t nodeOffset() const
Declared at: llvm/include/llvm/Object/MachO.h:82
¶iterator_range<
llvm::object::ExportEntry::node_iterator>
nodes() const
iterator_range<
llvm::object::ExportEntry::node_iterator>
nodes() const
Declared at: llvm/include/llvm/Object/MachO.h:122
¶uint64_t other() const
uint64_t other() const
Declared at: llvm/include/llvm/Object/MachO.h:80
¶llvm::StringRef otherName() const
llvm::StringRef otherName() const
Declared at: llvm/include/llvm/Object/MachO.h:81
¶void pushDownUntilBottom()
void pushDownUntilBottom()
Declared at: llvm/include/llvm/Object/MachO.h:94
¶void pushNode(uint64_t Offset)
void pushNode(uint64_t Offset)
Declared at: llvm/include/llvm/Object/MachO.h:95
Parameters
- uint64_t Offset
¶uint64_t readULEB128(const uint8_t*& p,
const char** error)
uint64_t readULEB128(const uint8_t*& p,
const char** error)
Declared at: llvm/include/llvm/Object/MachO.h:93
Parameters
- const uint8_t*& p
- const char** error