LLVM 22.0.0git
llvm::MachO::SymbolSet Class Reference

#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
using const_filtered_symbol_range

Public Member Functions

 SymbolSet ()=default
LLVM_ABI ~SymbolSet ()
LLVM_ABI SymboladdGlobal (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>()))>>
SymboladdGlobal (EncodeKind Kind, StringRef Name, SymbolFlags Flags, RangeT &&Targets)
LLVM_ABI const SymbolfindSymbol (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
LLVM_ABI bool operator== (const SymbolSet &O) const
bool operator!= (const SymbolSet &O) const
void * allocate (size_t Size, unsigned Align=8)

Detailed Description

Definition at line 77 of file SymbolSet.h.

Member Typedef Documentation

◆ const_filtered_symbol_iterator

Initial value:
std::function<bool(const Symbol *)>>
filter_iterator_impl< WrappedIteratorT, PredicateT, detail::fwd_or_bidi_tag< WrappedIteratorT > > filter_iterator
Defines filter_iterator to a suitable specialization of filter_iterator_impl, based on the underlying...
Definition STLExtras.h:539

Definition at line 133 of file SymbolSet.h.

◆ const_filtered_symbol_range

Initial value:

Definition at line 136 of file SymbolSet.h.

◆ const_symbol_range

Constructor & Destructor Documentation

◆ SymbolSet()

llvm::MachO::SymbolSet::SymbolSet ( )
default

References LLVM_ABI.

Referenced by operator!=(), and operator==().

◆ ~SymbolSet()

SymbolSet::~SymbolSet ( )

Member Function Documentation

◆ addGlobal() [1/2]

Symbol * SymbolSet::addGlobal ( EncodeKind Kind,
StringRef Name,
SymbolFlags Flags,
const Target & Targ )

Definition at line 29 of file SymbolSet.cpp.

Referenced by addGlobal().

◆ addGlobal() [2/2]

template<typename RangeT, typename ElT = std::remove_reference_t< decltype(*std::begin(std::declval<RangeT>()))>>
Symbol * llvm::MachO::SymbolSet::addGlobal ( EncodeKind Kind,
StringRef Name,
SymbolFlags Flags,
RangeT && Targets )
inline

◆ allocate()

void * llvm::MachO::SymbolSet::allocate ( size_t Size,
unsigned Align = 8 )
inline

Definition at line 178 of file SymbolSet.h.

References Size.

◆ exports()

const_filtered_symbol_range llvm::MachO::SymbolSet::exports ( ) const
inline

◆ findSymbol()

◆ operator!=()

bool llvm::MachO::SymbolSet::operator!= ( const SymbolSet & O) const
inline

Definition at line 176 of file SymbolSet.h.

References SymbolSet().

◆ operator==()

LLVM_ABI bool llvm::MachO::SymbolSet::operator== ( const SymbolSet & O) const

References LLVM_ABI, and SymbolSet().

◆ reexports()

const_filtered_symbol_range llvm::MachO::SymbolSet::reexports ( ) const
inline

◆ size()

size_t llvm::MachO::SymbolSet::size ( ) const
inline

Definition at line 98 of file SymbolSet.h.

◆ symbols()

const_symbol_range llvm::MachO::SymbolSet::symbols ( ) const
inline

Definition at line 140 of file SymbolSet.h.

◆ undefineds()

const_filtered_symbol_range llvm::MachO::SymbolSet::undefineds ( ) const
inline

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