[#llvm-ModuleSymbolTable] = xref:llvm.adoc[llvm]::ModuleSymbolTable :relfileprefix: ../ :mrdocs: Symbol table built from in‐memory IR modules. == Synopsis Declared in `<llvm/Object/ModuleSymbolTable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | xref:llvm/ModuleSymbolTable/AsmSymbol.adoc[`AsmSymbol`] | Assembly symbol name paired with its BasicSymbolRef flags. | xref:llvm/ModuleSymbolTable/Symbol.adoc[`Symbol`] | Either an IR GlobalValue or an assembly AsmSymbol entry. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/ModuleSymbolTable/addModule.adoc[`addModule`] | Record symbols from module `M` into this table. | xref:llvm/ModuleSymbolTable/getSymbolFlags.adoc[`getSymbolFlags`] | Flags for symbol `S` (bitwise OR of BasicSymbolRef::Flags). | xref:llvm/ModuleSymbolTable/printSymbolName.adoc[`printSymbolName`] | Print the name of symbol `S` to `OS.` | xref:llvm/ModuleSymbolTable/symbols.adoc[`symbols`] | Returns the symbols recorded in this table. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/ModuleSymbolTable/CollectAsmSymbols.adoc[`CollectAsmSymbols`] | Parse inline ASM and collect the symbols that are defined or referenced in the current module. | xref:llvm/ModuleSymbolTable/CollectAsmSymvers.adoc[`CollectAsmSymvers`] | Parse inline ASM and collect the symvers directives that are defined in the current module. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#