LLVM: llvm::ModuleSymbolTable Class Reference (original) (raw)
#include "[llvm/Object/ModuleSymbolTable.h](ModuleSymbolTable%5F8h%5Fsource.html)"
Public Member Functions | |
---|---|
ArrayRef< Symbol > | symbols () const |
void | addModule (Module *M) |
void | printSymbolName (raw_ostream &OS, Symbol S) const |
uint32_t | getSymbolFlags (Symbol S) const |
Static Public Member Functions | |
---|---|
static void | CollectAsmSymbols (const Module &M, function_ref< void(StringRef, object::BasicSymbolRef::Flags)> AsmSymbol) |
Parse inline ASM and collect the symbols that are defined or referenced in the current module. | |
static void | CollectAsmSymvers (const Module &M, function_ref< void(StringRef, StringRef)> AsmSymver) |
Parse inline ASM and collect the symvers directives that are defined in the current module. | |
Definition at line 33 of file ModuleSymbolTable.h.
◆ AsmSymbol
◆ Symbol
◆ addModule()
void ModuleSymbolTable::addModule | ( | Module * | M | ) |
---|
◆ CollectAsmSymbols()
Parse inline ASM and collect the symbols that are defined or referenced in the current module.
For each found symbol, call AsmSymbol
with the name of the symbol found and the associated flags.
Definition at line 140 of file ModuleSymbolTable.cpp.
References llvm::RecordStreamer::Defined, llvm::RecordStreamer::DefinedGlobal, llvm::RecordStreamer::DefinedWeak, llvm::RecordStreamer::flushSymverDirectives(), llvm::RecordStreamer::Global, initializeRecordStreamer(), llvm::CodeModel::Large, llvm_unreachable, llvm::CodeModel::Medium, llvm::RecordStreamer::NeverSeen, llvm::object::BasicSymbolRef::SF_Executable, llvm::object::BasicSymbolRef::SF_Global, llvm::object::BasicSymbolRef::SF_Undefined, llvm::object::BasicSymbolRef::SF_Weak, llvm::RecordStreamer::UndefinedWeak, llvm::RecordStreamer::Used, and llvm::Triple::x86.
Referenced by addModule(), and llvm::buildModuleSummaryIndex().
◆ CollectAsmSymvers()
◆ getSymbolFlags()
Definition at line 213 of file ModuleSymbolTable.cpp.
References llvm::GlobalValue::getAliaseeObject(), llvm::object::BasicSymbolRef::SF_Common, llvm::object::BasicSymbolRef::SF_Const, llvm::object::BasicSymbolRef::SF_Executable, llvm::object::BasicSymbolRef::SF_FormatSpecific, llvm::object::BasicSymbolRef::SF_Global, llvm::object::BasicSymbolRef::SF_Hidden, llvm::object::BasicSymbolRef::SF_Indirect, llvm::object::BasicSymbolRef::SF_None, llvm::object::BasicSymbolRef::SF_Undefined, and llvm::object::BasicSymbolRef::SF_Weak.
Referenced by llvm::object::IRObjectFile::getSymbolFlags().
◆ printSymbolName()
◆ symbols()
The documentation for this class was generated from the following files:
- include/llvm/Object/ModuleSymbolTable.h
- lib/Object/ModuleSymbolTable.cpp