LLVM  8.0.1
Public Types | Public Member Functions | Public Attributes | List of all members
llvm::irsymtab::Symbol Struct Reference

This represents a symbol that has been read from a storage::Symbol and possibly a storage::Uncommon. More...

#include "llvm/Object/IRSymtab.h"

Inheritance diagram for llvm::irsymtab::Symbol:
Inheritance graph
[legend]
Collaboration diagram for llvm::irsymtab::Symbol:
Collaboration graph
[legend]

Public Types

using S = storage::Symbol
 

Public Member Functions

StringRef getName () const
 Returns the mangled symbol name. More...
 
StringRef getIRName () const
 Returns the unmangled symbol name, or the empty string if this is not an IR symbol. More...
 
int getComdatIndex () const
 Returns the index into the comdat table (see Reader::getComdatTable()), or -1 if not a comdat member. More...
 
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. More...
 
StringRef getSectionName () const
 

Public Attributes

StringRef Name
 
StringRef IRName
 
int ComdatIndex
 
uint32_t Flags
 
uint32_t CommonSize
 
uint32_t CommonAlign
 
StringRef COFFWeakExternFallbackName
 
StringRef SectionName
 

Detailed Description

This represents a symbol that has been read from a storage::Symbol and possibly a storage::Uncommon.

Definition at line 162 of file IRSymtab.h.

Member Typedef Documentation

◆ S

Definition at line 184 of file IRSymtab.h.

Member Function Documentation

◆ canBeOmittedFromSymbolTable()

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

Definition at line 197 of file IRSymtab.h.

Referenced by llvm::lto::InputFile::Symbol::Symbol().

◆ 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 218 of file IRSymtab.h.

References assert(), and isWeak().

Referenced by llvm::lto::InputFile::Symbol::Symbol().

◆ 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 182 of file IRSymtab.h.

Referenced by llvm::lto::InputFile::Symbol::Symbol().

◆ getCommonAlignment()

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

Definition at line 211 of file IRSymtab.h.

References assert().

Referenced by llvm::lto::InputFile::Symbol::Symbol().

◆ getCommonSize()

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

Definition at line 206 of file IRSymtab.h.

References assert().

Referenced by llvm::lto::InputFile::Symbol::Symbol().

◆ 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 178 of file IRSymtab.h.

◆ getName()

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

Returns the mangled symbol name.

Definition at line 174 of file IRSymtab.h.

References Name.

Referenced by llvm::lto::InputFile::getCOFFLinkerOpts(), and llvm::lto::InputFile::Symbol::Symbol().

◆ getSectionName()

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

Definition at line 223 of file IRSymtab.h.

References AMDGPU::ElfNote::SectionName.

Referenced by llvm::lto::InputFile::Symbol::Symbol().

◆ getVisibility()

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

Definition at line 186 of file IRSymtab.h.

Referenced by llvm::lto::InputFile::Symbol::Symbol().

◆ isCommon()

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

Definition at line 192 of file IRSymtab.h.

Referenced by llvm::lto::InputFile::Symbol::Symbol().

◆ isExecutable()

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

Definition at line 204 of file IRSymtab.h.

Referenced by llvm::lto::InputFile::Symbol::Symbol().

◆ isFormatSpecific()

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

Definition at line 202 of file IRSymtab.h.

◆ isGlobal()

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

Definition at line 201 of file IRSymtab.h.

◆ isIndirect()

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

Definition at line 193 of file IRSymtab.h.

Referenced by llvm::lto::InputFile::Symbol::Symbol().

◆ isTLS()

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

Definition at line 195 of file IRSymtab.h.

Referenced by llvm::lto::InputFile::Symbol::Symbol().

◆ isUndefined()

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

Definition at line 190 of file IRSymtab.h.

Referenced by llvm::lto::InputFile::Symbol::Symbol().

◆ isUnnamedAddr()

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

Definition at line 203 of file IRSymtab.h.

◆ isUsed()

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

Definition at line 194 of file IRSymtab.h.

◆ isWeak()

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

Definition at line 191 of file IRSymtab.h.

Referenced by llvm::lto::InputFile::Symbol::Symbol().

Member Data Documentation

◆ COFFWeakExternFallbackName

StringRef llvm::irsymtab::Symbol::COFFWeakExternFallbackName

Definition at line 170 of file IRSymtab.h.

◆ ComdatIndex

int llvm::irsymtab::Symbol::ComdatIndex

Definition at line 165 of file IRSymtab.h.

◆ CommonAlign

uint32_t llvm::irsymtab::Symbol::CommonAlign

Definition at line 169 of file IRSymtab.h.

◆ CommonSize

uint32_t llvm::irsymtab::Symbol::CommonSize

Definition at line 169 of file IRSymtab.h.

◆ Flags

uint32_t llvm::irsymtab::Symbol::Flags

Definition at line 166 of file IRSymtab.h.

◆ IRName

StringRef llvm::irsymtab::Symbol::IRName

Definition at line 164 of file IRSymtab.h.

◆ Name

StringRef llvm::irsymtab::Symbol::Name

Definition at line 164 of file IRSymtab.h.

◆ SectionName

StringRef llvm::irsymtab::Symbol::SectionName

Definition at line 171 of file IRSymtab.h.


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