|
LLVM
4.0.0
|
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 |
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.
|
inline |
|
inline |
Definition at line 157 of file LTO.h.
References llvm::canBeOmittedFromSymbolTable().
| Expected< int > InputFile::Symbol::getComdatIndex | ( | ) | const |
Definition at line 278 of file LTO.cpp.
References assert(), C, llvm::ARMBuildAttrs::File, llvm::GlobalValue::getBaseObject(), llvm::GlobalObject::getComdat(), I, and llvm::inconvertibleErrorCode().
|
inline |
Definition at line 180 of file LTO.h.
References assert(), llvm::GlobalValue::getAlignment(), and llvm::object::BasicSymbolRef::SF_Common.
|
inline |
Definition at line 173 of file LTO.h.
References assert(), llvm::Module::getDataLayout(), llvm::GlobalValue::getParent(), llvm::Intrinsic::getType(), llvm::DataLayout::getTypeAllocSize(), and llvm::object::BasicSymbolRef::SF_Common.
|
inline |
|
inline |
Returns the mangled name of the global.
Definition at line 149 of file LTO.h.
Referenced by writeToResolutionFile().
|
inline |
Definition at line 152 of file LTO.h.
References llvm::GlobalValue::DefaultVisibility, and llvm::GlobalValue::getVisibility().
|
inline |
Definition at line 160 of file LTO.h.
References llvm::GlobalValue::isThreadLocal().
1.8.6