LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
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:
Inheritance graph
[legend]

Public Member Functions

 Symbol (const irsymtab::Symbol &S)
 
- 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 143 of file LTO.h.

Constructor & Destructor Documentation

◆ Symbol()

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

Definition at line 147 of file LTO.h.

Member Data Documentation

◆ LTO

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

Definition at line 144 of file LTO.h.


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