LLVM 22.0.0git
llvm::objcopy::macho::SymbolTable Struct Reference

The location of the symbol table inside the binary is described by LC_SYMTAB load command. More...

#include "ObjCopy/MachO/MachOObject.h"

Public Types

using iterator

Public Member Functions

iterator begin () const
iterator end () const
const SymbolEntrygetSymbolByIndex (uint32_t Index) const
SymbolEntrygetSymbolByIndex (uint32_t Index)
void updateSymbols (function_ref< void(SymbolEntry &)> Callable)
void removeSymbols (function_ref< bool(const std::unique_ptr< SymbolEntry > &)> ToRemove)

Public Attributes

std::vector< std::unique_ptr< SymbolEntry > > Symbols

Detailed Description

The location of the symbol table inside the binary is described by LC_SYMTAB load command.

Definition at line 134 of file MachOObject.h.

Member Typedef Documentation

◆ iterator

Initial value:
std::vector<std::unique_ptr<SymbolEntry>>::const_iterator>
An iterator type that allows iterating over the pointees via some other iterator.
Definition iterator.h:324

Definition at line 137 of file MachOObject.h.

Member Function Documentation

◆ begin()

iterator llvm::objcopy::macho::SymbolTable::begin ( ) const
inline

Definition at line 140 of file MachOObject.h.

References Symbols.

◆ end()

iterator llvm::objcopy::macho::SymbolTable::end ( ) const
inline

Definition at line 141 of file MachOObject.h.

References Symbols.

◆ getSymbolByIndex() [1/2]

SymbolEntry * SymbolTable::getSymbolByIndex ( uint32_t Index)

Definition at line 31 of file MachOObject.cpp.

References getSymbolByIndex().

◆ getSymbolByIndex() [2/2]

const SymbolEntry * SymbolTable::getSymbolByIndex ( uint32_t Index) const

Definition at line 26 of file MachOObject.cpp.

References assert(), and Symbols.

Referenced by getSymbolByIndex().

◆ removeSymbols()

void SymbolTable::removeSymbols ( function_ref< bool(const std::unique_ptr< SymbolEntry > &)> ToRemove)

Definition at line 49 of file MachOObject.cpp.

References llvm::erase_if(), Symbols, and ToRemove.

Referenced by updateAndRemoveSymbols().

◆ updateSymbols()

void SymbolTable::updateSymbols ( function_ref< void(SymbolEntry &)> Callable)

Definition at line 36 of file MachOObject.cpp.

References Symbols.

Referenced by updateAndRemoveSymbols().

Member Data Documentation

◆ Symbols

std::vector<std::unique_ptr<SymbolEntry> > llvm::objcopy::macho::SymbolTable::Symbols

Definition at line 135 of file MachOObject.h.

Referenced by begin(), end(), getSymbolByIndex(), removeSymbols(), and updateSymbols().


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