LLVM  14.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 (SymbolKind Kind, StringRef Name, TargetList Targets, SymbolFlags Flags)
 
void addTarget (Target target)
 
SymbolKind 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
 
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 63 of file Symbol.h.

Member Typedef Documentation

◆ const_filtered_target_iterator

Definition at line 103 of file Symbol.h.

◆ const_filtered_target_range

Definition at line 105 of file Symbol.h.

◆ const_target_iterator

Definition at line 97 of file Symbol.h.

◆ const_target_range

Definition at line 98 of file Symbol.h.

Constructor & Destructor Documentation

◆ Symbol()

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

Definition at line 65 of file Symbol.h.

Member Function Documentation

◆ addTarget()

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

Definition at line 68 of file Symbol.h.

References llvm::SmallVectorImpl< T >::emplace_back().

◆ dump() [1/2]

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

Definition at line 110 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

Definition at line 74 of file Symbol.h.

◆ getKind()

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

◆ getName()

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

◆ isReexported()

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

Definition at line 93 of file Symbol.h.

References llvm::MachO::Rexported.

◆ 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 118 of file Symbol.h.

References llvm::RISCVFenceField::O.

◆ operator<()

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

Definition at line 120 of file Symbol.h.

References llvm::RISCVFenceField::O.

◆ operator==()

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

Definition at line 113 of file Symbol.h.

References llvm::RISCVFenceField::O.

◆ 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: