llvm::ModuleSymbolTable

Symbol table built from in-memory IR modules.

Synopsis

Declared in <llvm/Object/ModuleSymbolTable.h>

class ModuleSymbolTable;

Description

Provides access to GlobalValues and should only be used if such access is required (e.g. in the LTO implementation).

Type Aliases

NameDescription
AsmSymbol Assembly symbol name paired with its BasicSymbolRef flags.
Symbol Either an IR GlobalValue or an assembly AsmSymbol entry.

Member Functions

NameDescription
addModule Record symbols from module M into this table.
getSymbolFlags Flags for symbol S (bitwise OR of BasicSymbolRef::Flags).
printSymbolName Print the name of symbol S to OS.
symbols Returns the symbols recorded in this table.

Static Member Functions

NameDescription
CollectAsmSymbols Parse inline ASM and collect the symbols that are defined or referenced in the current module.
CollectAsmSymvers Parse inline ASM and collect the symvers directives that are defined in the current module.