LLVM 22.0.0git
llvm::lto::InputFile::Symbol Struct Reference

The purpose of this struct is to only expose the symbol information that an LTO client should need in order to do symbol resolution. More...

#include "llvm/LTO/LTO.h"

Inheritance diagram for llvm::lto::InputFile::Symbol:
[legend]

Public Member Functions

 Symbol (const irsymtab::Symbol &S)
bool isUndefined () const
bool isCommon () const
bool isWeak () const
bool isIndirect () const
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.
GlobalValue::VisibilityTypes getVisibility () const
bool canBeOmittedFromSymbolTable () const
bool isTLS () const
int getComdatIndex () const
 Returns the index into the comdat table (see Reader::getComdatTable()), or -1 if not a comdat member.
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
bool isExecutable () const
bool isUsed () const
Public Member Functions inherited from llvm::irsymtab::Symbol
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

friend LTO
Public Attributes inherited from llvm::irsymtab::Symbol
StringRef Name
StringRef IRName
int ComdatIndex
uint32_t Flags
uint32_t CommonSize
uint32_t CommonAlign
StringRef COFFWeakExternFallbackName
StringRef SectionName

Additional Inherited Members

Public Types inherited from llvm::irsymtab::Symbol
using S = storage::Symbol

Detailed Description

The purpose of this struct is to only expose the symbol information that an LTO client should need in order to do symbol resolution.

Definition at line 147 of file LTO.h.

Constructor & Destructor Documentation

◆ Symbol()

llvm::lto::InputFile::Symbol::Symbol ( const irsymtab::Symbol & S)
inline

Definition at line 151 of file LTO.h.

References Symbol().

Referenced by Symbol().

Member Function Documentation

◆ canBeOmittedFromSymbolTable()

bool llvm::irsymtab::Symbol::canBeOmittedFromSymbolTable ( ) const
inline

Definition at line 208 of file IRSymtab.h.

◆ getCOFFWeakExternalFallback()

StringRef llvm::irsymtab::Symbol::getCOFFWeakExternalFallback ( ) const
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 229 of file IRSymtab.h.

◆ getComdatIndex()

int llvm::irsymtab::Symbol::getComdatIndex ( ) const
inline

Returns the index into the comdat table (see Reader::getComdatTable()), or -1 if not a comdat member.

Definition at line 193 of file IRSymtab.h.

◆ getCommonAlignment()

uint32_t llvm::irsymtab::Symbol::getCommonAlignment ( ) const
inline

Definition at line 222 of file IRSymtab.h.

◆ getCommonSize()

uint64_t llvm::irsymtab::Symbol::getCommonSize ( ) const
inline

Definition at line 217 of file IRSymtab.h.

◆ getIRName()

StringRef llvm::irsymtab::Symbol::getIRName ( ) const
inline

Returns the unmangled symbol name, or the empty string if this is not an IR symbol.

Definition at line 189 of file IRSymtab.h.

◆ getName()

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

Returns the mangled symbol name.

Definition at line 185 of file IRSymtab.h.

◆ getSectionName()

StringRef llvm::irsymtab::Symbol::getSectionName ( ) const
inline

Definition at line 234 of file IRSymtab.h.

◆ getVisibility()

GlobalValue::VisibilityTypes llvm::irsymtab::Symbol::getVisibility ( ) const
inline

Definition at line 197 of file IRSymtab.h.

◆ isCommon()

bool llvm::irsymtab::Symbol::isCommon ( ) const
inline

Definition at line 203 of file IRSymtab.h.

◆ isExecutable()

bool llvm::irsymtab::Symbol::isExecutable ( ) const
inline

Definition at line 215 of file IRSymtab.h.

◆ isIndirect()

bool llvm::irsymtab::Symbol::isIndirect ( ) const
inline

Definition at line 204 of file IRSymtab.h.

◆ isTLS()

bool llvm::irsymtab::Symbol::isTLS ( ) const
inline

Definition at line 206 of file IRSymtab.h.

◆ isUndefined()

bool llvm::irsymtab::Symbol::isUndefined ( ) const
inline

Definition at line 201 of file IRSymtab.h.

◆ isUsed()

bool llvm::irsymtab::Symbol::isUsed ( ) const
inline

Definition at line 205 of file IRSymtab.h.

◆ isWeak()

bool llvm::irsymtab::Symbol::isWeak ( ) const
inline

Definition at line 202 of file IRSymtab.h.

Member Data Documentation

◆ LTO

friend llvm::lto::InputFile::Symbol::LTO

Definition at line 148 of file LTO.h.


The documentation for this struct was generated from the following file: