LLVM  10.0.0svn
Public Types | Public Member Functions | List of all members
llvm::MachO::Symbol Class Reference

#include "llvm/TextAPI/MachO/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
 

Detailed Description

Definition at line 57 of file Symbol.h.

Member Typedef Documentation

◆ const_filtered_target_iterator

Definition at line 97 of file Symbol.h.

◆ const_filtered_target_range

Definition at line 99 of file Symbol.h.

◆ const_target_iterator

Definition at line 91 of file Symbol.h.

◆ const_target_range

Definition at line 92 of file Symbol.h.

Constructor & Destructor Documentation

◆ Symbol()

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

Definition at line 59 of file Symbol.h.

Member Function Documentation

◆ addTarget()

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

Definition at line 62 of file Symbol.h.

◆ dump() [1/2]

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

◆ dump() [2/2]

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

Definition at line 104 of file Symbol.h.

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

Referenced by dump().

◆ getArchitectures()

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

Definition at line 65 of file Symbol.h.

References llvm::MachO::mapToArchitectureSet().

◆ getFlags()

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

Definition at line 68 of file Symbol.h.

◆ getKind()

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

◆ getName()

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

Definition at line 64 of file Symbol.h.

References Name.

Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().

◆ isReexported()

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

◆ 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

Definition at line 74 of file Symbol.h.

References llvm::MachO::WeakReferenced.

Referenced by dump(), and getFlags().

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