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

#include "llvm/TextAPI/Symbol.h"

Public Types

using const_target_iterator = TargetList::const_iterator
using const_target_range = llvm::iterator_range<const_target_iterator>
using const_filtered_target_iterator
using const_filtered_target_range

Public Member Functions

 Symbol (EncodeKind Kind, StringRef Name, TargetList Targets, SymbolFlags Flags)
void addTarget (Target InputTarget)
EncodeKind getKind () const
StringRef getName () const
ArchitectureSet getArchitectures () const
SymbolFlags getFlags () const
bool isWeakDefined () const
bool isWeakReferenced () const
bool isThreadLocalValue () const
bool isUndefined () const
bool isReexported () const
bool isData () const
bool isText () const
bool hasArchitecture (Architecture Arch) const
bool hasTarget (const Target &Targ) const
const_target_range targets () const
LLVM_ABI const_filtered_target_range targets (ArchitectureSet architectures) const
void dump (raw_ostream &OS) const
void dump () const
LLVM_ABI bool operator== (const Symbol &O) const
bool operator!= (const Symbol &O) const
bool operator< (const Symbol &O) const

Detailed Description

Definition at line 97 of file Symbol.h.

Member Typedef Documentation

◆ const_filtered_target_iterator

Initial value:
std::function<bool(const Target &)>>
TargetList::const_iterator const_target_iterator
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 151 of file Symbol.h.

◆ const_filtered_target_range

Initial value:

Definition at line 154 of file Symbol.h.

◆ const_target_iterator

◆ const_target_range

Constructor & Destructor Documentation

◆ Symbol()

llvm::MachO::Symbol::Symbol ( EncodeKind Kind,
StringRef Name,
TargetList Targets,
SymbolFlags Flags )
inline

Definition at line 99 of file Symbol.h.

References llvm::move().

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

Member Function Documentation

◆ addTarget()

void llvm::MachO::Symbol::addTarget ( Target InputTarget)
inline

Definition at line 102 of file Symbol.h.

References llvm::MachO::addEntry().

◆ dump() [1/2]

void llvm::MachO::Symbol::dump ( ) const
inline

Definition at line 161 of file Symbol.h.

References dump(), and llvm::errs().

Referenced by dump().

◆ dump() [2/2]

◆ getArchitectures()

ArchitectureSet llvm::MachO::Symbol::getArchitectures ( ) const
inline

◆ getFlags()

SymbolFlags llvm::MachO::Symbol::getFlags ( ) const
inline

Definition at line 108 of file Symbol.h.

Referenced by accumulateLocs().

◆ getKind()

◆ getName()

◆ hasArchitecture()

bool llvm::MachO::Symbol::hasArchitecture ( Architecture Arch) const
inline

◆ hasTarget()

bool llvm::MachO::Symbol::hasTarget ( const Target & Targ) const
inline

Definition at line 143 of file Symbol.h.

References llvm::is_contained().

◆ isData()

bool llvm::MachO::Symbol::isData ( ) const
inline

Definition at line 131 of file Symbol.h.

References llvm::MachO::Data.

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

◆ isReexported()

bool llvm::MachO::Symbol::isReexported ( ) const
inline

◆ isText()

bool llvm::MachO::Symbol::isText ( ) const
inline

Definition at line 135 of file Symbol.h.

References llvm::MachO::Text.

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

◆ isThreadLocalValue()

◆ isUndefined()

bool llvm::MachO::Symbol::isUndefined ( ) const
inline

◆ isWeakDefined()

◆ isWeakReferenced()

bool llvm::MachO::Symbol::isWeakReferenced ( ) const
inline

◆ operator!=()

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

Definition at line 166 of file Symbol.h.

References Symbol().

◆ operator<()

bool llvm::MachO::Symbol::operator< ( const Symbol & O) const
inline

Definition at line 168 of file Symbol.h.

References Symbol().

◆ operator==()

bool llvm::MachO::Symbol::operator== ( const Symbol & O) const

Definition at line 57 of file Symbol.cpp.

References llvm::MachO::Data, isData(), isText(), Symbol(), and llvm::MachO::Text.

◆ targets() [1/2]

const_target_range llvm::MachO::Symbol::targets ( ) const
inline

◆ targets() [2/2]

Symbol::const_filtered_target_range llvm::MachO::Symbol::targets ( ArchitectureSet architectures) const

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