LLDB mainline
SymbolFileWasm.cpp File Reference

Go to the source code of this file.

Functions

static llvm::DenseMap< ConstString, uint32_t > BuildDemangledCodeSymbolIndex (Symtab &symtab)
 Index the code symbols that carry no mangled name by their demangled name.

Function Documentation

◆ BuildDemangledCodeSymbolIndex()

llvm::DenseMap< ConstString, uint32_t > BuildDemangledCodeSymbolIndex ( Symtab & symtab)
static

Index the code symbols that carry no mangled name by their demangled name.

The value is a symbol table index rather than a Symbol pointer because pointers do not survive symbols being appended to the table.

Definition at line 41 of file SymbolFileWasm.cpp.

References lldb::eSymbolTypeCode, lldb_private::Mangled::GetDemangledName(), lldb_private::Symbol::GetMangled(), lldb_private::Mangled::GetMangledName(), lldb_private::Symtab::GetNumSymbols(), lldb_private::Symbol::GetType(), and lldb_private::Symtab::SymbolAtIndex().

Referenced by lldb_private::plugin::dwarf::SymbolFileWasm::AddSymbols().