LLVM 20.0.0git
|
This represents a symbol that has been read from a storage::Symbol and possibly a storage::Uncommon. More...
#include "llvm/Object/IRSymtab.h"
Public Types | |
using | S = storage::Symbol |
Public Member Functions | |
StringRef | getName () const |
Returns the mangled symbol name. | |
StringRef | getIRName () const |
Returns the unmangled symbol name, or the empty string if this is not an IR symbol. | |
int | getComdatIndex () const |
Returns the index into the comdat table (see Reader::getComdatTable()), or -1 if not a comdat member. | |
GlobalValue::VisibilityTypes | getVisibility () const |
bool | isUndefined () const |
bool | isWeak () const |
bool | isCommon () const |
bool | isIndirect () const |
bool | isUsed () const |
bool | isTLS () const |
bool | canBeOmittedFromSymbolTable () const |
bool | isGlobal () const |
bool | isFormatSpecific () const |
bool | isUnnamedAddr () const |
bool | isExecutable () const |
uint64_t | getCommonSize () const |
uint32_t | getCommonAlignment () const |
StringRef | getCOFFWeakExternalFallback () const |
COFF-specific: for weak externals, returns the name of the symbol that is used as a fallback if the weak external remains undefined. | |
StringRef | getSectionName () const |
Public Attributes | |
StringRef | Name |
StringRef | IRName |
int | ComdatIndex |
uint32_t | Flags |
uint32_t | CommonSize |
uint32_t | CommonAlign |
StringRef | COFFWeakExternFallbackName |
StringRef | SectionName |
This represents a symbol that has been read from a storage::Symbol and possibly a storage::Uncommon.
Definition at line 170 of file IRSymtab.h.
Definition at line 193 of file IRSymtab.h.
|
inline |
Definition at line 206 of file IRSymtab.h.
References llvm::irsymtab::storage::Symbol::FB_may_omit, and Flags.
|
inline |
COFF-specific: for weak externals, returns the name of the symbol that is used as a fallback if the weak external remains undefined.
Definition at line 227 of file IRSymtab.h.
References assert(), COFFWeakExternFallbackName, isIndirect(), and isWeak().
|
inline |
Returns the index into the comdat table (see Reader::getComdatTable()), or -1 if not a comdat member.
Definition at line 191 of file IRSymtab.h.
References ComdatIndex.
|
inline |
Definition at line 220 of file IRSymtab.h.
References assert(), CommonAlign, and isCommon().
|
inline |
Definition at line 215 of file IRSymtab.h.
References assert(), CommonSize, and isCommon().
|
inline |
Returns the unmangled symbol name, or the empty string if this is not an IR symbol.
Definition at line 187 of file IRSymtab.h.
References IRName.
|
inline |
|
inline |
Definition at line 232 of file IRSymtab.h.
References SectionName.
|
inline |
Definition at line 195 of file IRSymtab.h.
References llvm::irsymtab::storage::Symbol::FB_visibility, and Flags.
|
inline |
Definition at line 201 of file IRSymtab.h.
References llvm::irsymtab::storage::Symbol::FB_common, and Flags.
Referenced by getCommonAlignment(), and getCommonSize().
|
inline |
Definition at line 213 of file IRSymtab.h.
References llvm::irsymtab::storage::Symbol::FB_executable, and Flags.
|
inline |
Definition at line 211 of file IRSymtab.h.
References llvm::irsymtab::storage::Symbol::FB_format_specific, and Flags.
Referenced by llvm::lto::InputFile::create().
|
inline |
Definition at line 210 of file IRSymtab.h.
References llvm::irsymtab::storage::Symbol::FB_global, and Flags.
Referenced by llvm::lto::InputFile::create().
|
inline |
Definition at line 202 of file IRSymtab.h.
References llvm::irsymtab::storage::Symbol::FB_indirect, and Flags.
Referenced by getCOFFWeakExternalFallback().
|
inline |
Definition at line 204 of file IRSymtab.h.
References llvm::irsymtab::storage::Symbol::FB_tls, and Flags.
|
inline |
Definition at line 199 of file IRSymtab.h.
References llvm::irsymtab::storage::Symbol::FB_undefined, and Flags.
|
inline |
Definition at line 212 of file IRSymtab.h.
References llvm::irsymtab::storage::Symbol::FB_unnamed_addr, and Flags.
|
inline |
Definition at line 203 of file IRSymtab.h.
References llvm::irsymtab::storage::Symbol::FB_used, and Flags.
|
inline |
Definition at line 200 of file IRSymtab.h.
References llvm::irsymtab::storage::Symbol::FB_weak, and Flags.
Referenced by getCOFFWeakExternalFallback().
StringRef llvm::irsymtab::Symbol::COFFWeakExternFallbackName |
Definition at line 179 of file IRSymtab.h.
Referenced by getCOFFWeakExternalFallback().
int llvm::irsymtab::Symbol::ComdatIndex |
Definition at line 174 of file IRSymtab.h.
Referenced by getComdatIndex().
uint32_t llvm::irsymtab::Symbol::CommonAlign |
Definition at line 178 of file IRSymtab.h.
Referenced by getCommonAlignment().
uint32_t llvm::irsymtab::Symbol::CommonSize |
Definition at line 178 of file IRSymtab.h.
Referenced by getCommonSize().
uint32_t llvm::irsymtab::Symbol::Flags |
Definition at line 175 of file IRSymtab.h.
Referenced by canBeOmittedFromSymbolTable(), getVisibility(), isCommon(), isExecutable(), isFormatSpecific(), isGlobal(), isIndirect(), isTLS(), isUndefined(), isUnnamedAddr(), isUsed(), isWeak(), and llvm::irsymtab::Reader::SymbolRef::moveNext().
StringRef llvm::irsymtab::Symbol::IRName |
Definition at line 173 of file IRSymtab.h.
Referenced by getIRName().
|
mutable |
Definition at line 172 of file IRSymtab.h.
Referenced by getName().
StringRef llvm::irsymtab::Symbol::SectionName |
Definition at line 180 of file IRSymtab.h.
Referenced by getSectionName().