LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
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 = llvm::filter_iterator< const_target_iterator, std::function< bool(const Target &)> >
 
using const_filtered_target_range = llvm::iterator_range< const_filtered_target_iterator >
 

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
 
const_filtered_target_range targets (ArchitectureSet architectures) const
 
void dump (raw_ostream &OS) const
 
void dump () const
 
bool operator== (const Symbol &O) const
 
bool operator!= (const Symbol &O) const
 
bool operator< (const Symbol &O) const
 

Detailed Description

Definition at line 96 of file Symbol.h.

Member Typedef Documentation

◆ const_filtered_target_iterator

Definition at line 150 of file Symbol.h.

◆ const_filtered_target_range

Definition at line 153 of file Symbol.h.

◆ const_target_iterator

Definition at line 146 of file Symbol.h.

◆ const_target_range

Definition at line 147 of file Symbol.h.

Constructor & Destructor Documentation

◆ Symbol()

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

Definition at line 98 of file Symbol.h.

Member Function Documentation

◆ addTarget()

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

Definition at line 101 of file Symbol.h.

References llvm::MachO::addEntry().

Referenced by llvm::MachO::SymbolSet::addGlobal().

◆ dump() [1/2]

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

Definition at line 159 of file Symbol.h.

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

Referenced by dump().

◆ dump() [2/2]

LLVM_DUMP_METHOD void llvm::MachO::Symbol::dump ( raw_ostream OS) const

◆ getArchitectures()

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

◆ getFlags()

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

◆ getKind()

EncodeKind llvm::MachO::Symbol::getKind ( ) const
inline

◆ getName()

StringRef llvm::MachO::Symbol::getName ( ) const
inline

◆ hasArchitecture()

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

◆ hasTarget()

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

Definition at line 142 of file Symbol.h.

References llvm::is_contained().

◆ isData()

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

Definition at line 130 of file Symbol.h.

References llvm::MachO::Data.

Referenced by getType().

◆ isReexported()

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

◆ isText()

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

Definition at line 134 of file Symbol.h.

References llvm::MachO::Text.

Referenced by getType().

◆ isThreadLocalValue()

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

◆ isUndefined()

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

◆ isWeakDefined()

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

◆ isWeakReferenced()

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

◆ operator!=()

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

Definition at line 164 of file Symbol.h.

◆ operator<()

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

Definition at line 166 of file Symbol.h.

◆ operator==()

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

Definition at line 57 of file Symbol.cpp.

References llvm::MachO::Data, Sym, 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: