LLVM 20.0.0git
|
#include "llvm/TextAPI/SymbolSet.h"
Classes | |
struct | const_symbol_iterator |
Public Types | |
using | const_symbol_range = iterator_range< const_symbol_iterator > |
using | const_filtered_symbol_iterator = filter_iterator< const_symbol_iterator, std::function< bool(const Symbol *)> > |
using | const_filtered_symbol_range = iterator_range< const_filtered_symbol_iterator > |
Public Member Functions | |
SymbolSet ()=default | |
Symbol * | addGlobal (EncodeKind Kind, StringRef Name, SymbolFlags Flags, const Target &Targ) |
size_t | size () const |
template<typename RangeT , typename ElT = std::remove_reference_t< decltype(*std::begin(std::declval<RangeT>()))>> | |
Symbol * | addGlobal (EncodeKind Kind, StringRef Name, SymbolFlags Flags, RangeT &&Targets) |
const Symbol * | findSymbol (EncodeKind Kind, StringRef Name, ObjCIFSymbolKind ObjCIF=ObjCIFSymbolKind::None) const |
const_symbol_range | symbols () const |
const_filtered_symbol_range | exports () const |
const_filtered_symbol_range | reexports () const |
const_filtered_symbol_range | undefineds () const |
bool | operator== (const SymbolSet &O) const |
bool | operator!= (const SymbolSet &O) const |
void * | allocate (size_t Size, unsigned Align=8) |
Definition at line 76 of file SymbolSet.h.
using llvm::MachO::SymbolSet::const_filtered_symbol_iterator = filter_iterator<const_symbol_iterator, std::function<bool(const Symbol *)> > |
Definition at line 131 of file SymbolSet.h.
using llvm::MachO::SymbolSet::const_filtered_symbol_range = iterator_range<const_filtered_symbol_iterator> |
Definition at line 134 of file SymbolSet.h.
Definition at line 129 of file SymbolSet.h.
|
default |
Symbol * SymbolSet::addGlobal | ( | EncodeKind | Kind, |
StringRef | Name, | ||
SymbolFlags | Flags, | ||
const Target & | Targ | ||
) |
Definition at line 24 of file SymbolSet.cpp.
References llvm::MachO::Symbol::addTarget(), Name, and Sym.
Referenced by addGlobal(), llvm::MachO::SymbolConverter::visitGlobal(), and llvm::MachO::SymbolConverter::visitObjCInterface().
|
inline |
Definition at line 100 of file SymbolSet.h.
References addGlobal(), llvm::Global, Name, llvm::MachO::ObjectiveCClass, and llvm::MachO::ObjectiveCClassEHType.
|
inline |
Definition at line 176 of file SymbolSet.h.
|
inline |
Definition at line 143 of file SymbolSet.h.
References llvm::MachO::Symbol::isReexported(), llvm::MachO::Symbol::isUndefined(), and llvm::make_filter_range().
const Symbol * SymbolSet::findSymbol | ( | EncodeKind | Kind, |
StringRef | Name, | ||
ObjCIFSymbolKind | ObjCIF = ObjCIFSymbolKind::None |
||
) | const |
Definition at line 31 of file SymbolSet.cpp.
References assert(), llvm::MachO::Class, llvm::MachO::EHType, llvm::MachO::GlobalSymbol, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::lookup(), llvm::MachO::MetaClass, Name, llvm::MachO::None, llvm::MachO::ObjC2ClassNamePrefix, llvm::MachO::ObjC2EHTypePrefix, and llvm::MachO::ObjC2MetaClassNamePrefix.
Definition at line 174 of file SymbolSet.h.
|
inline |
Definition at line 153 of file SymbolSet.h.
References llvm::MachO::Symbol::isReexported(), and llvm::make_filter_range().
|
inline |
Definition at line 96 of file SymbolSet.h.
|
inline |
Definition at line 138 of file SymbolSet.h.
|
inline |
Definition at line 163 of file SymbolSet.h.
References llvm::MachO::Symbol::isUndefined(), and llvm::make_filter_range().