LLVM  4.0.0
Public Member Functions | List of all members
llvm::lto::InputFile::Symbol Class Reference

This is a wrapper for ArrayRef<ModuleSymbolTable::Symbol>::iterator that exposes only the information that an LTO client should need in order to do symbol resolution. More...

#include <LTO.h>

Public Member Functions

 Symbol (ArrayRef< ModuleSymbolTable::Symbol >::iterator I, const ModuleSymbolTable &SymTab, const InputFile *File)
 
StringRef getName () const
 Returns the mangled name of the global. More...
 
uint32_t getFlags () const
 
GlobalValue::VisibilityTypes getVisibility () const
 
bool canBeOmittedFromSymbolTable () const
 
bool isTLS () const
 
Expected< int > getComdatIndex () const
 
uint64_t getCommonSize () const
 
unsigned getCommonAlignment () const
 

Detailed Description

This is a wrapper for ArrayRef<ModuleSymbolTable::Symbol>::iterator that exposes only the information that an LTO client should need in order to do symbol resolution.

This object is ephemeral; it is only valid as long as an iterator obtained from symbols() refers to it.

Definition at line 105 of file LTO.h.

Constructor & Destructor Documentation

llvm::lto::InputFile::Symbol::Symbol ( ArrayRef< ModuleSymbolTable::Symbol >::iterator  I,
const ModuleSymbolTable SymTab,
const InputFile File 
)
inline

Definition at line 142 of file LTO.h.

Member Function Documentation

bool llvm::lto::InputFile::Symbol::canBeOmittedFromSymbolTable ( ) const
inline

Definition at line 157 of file LTO.h.

References llvm::canBeOmittedFromSymbolTable().

Expected< int > InputFile::Symbol::getComdatIndex ( ) const
unsigned llvm::lto::InputFile::Symbol::getCommonAlignment ( ) const
inline
uint64_t llvm::lto::InputFile::Symbol::getCommonSize ( ) const
inline
uint32_t llvm::lto::InputFile::Symbol::getFlags ( ) const
inline

Definition at line 151 of file LTO.h.

StringRef llvm::lto::InputFile::Symbol::getName ( ) const
inline

Returns the mangled name of the global.

Definition at line 149 of file LTO.h.

Referenced by writeToResolutionFile().

GlobalValue::VisibilityTypes llvm::lto::InputFile::Symbol::getVisibility ( ) const
inline
bool llvm::lto::InputFile::Symbol::isTLS ( ) const
inline

Definition at line 160 of file LTO.h.

References llvm::GlobalValue::isThreadLocal().


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