9#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DEBUGNAMESDWARFINDEX_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DEBUGNAMESDWARFINDEX_H
17#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"
24 static llvm::Expected<std::unique_ptr<DebugNamesDWARFIndex>>
32 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
35 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
38 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
41 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override {}
43 ConstString class_name,
bool must_be_implementation,
44 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
46 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
48 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
50 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
54 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
56 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
62 std::unique_ptr<llvm::DWARFDebugNames> debug_names_up,
82 std::optional<DIERef>
ToDIERef(
const DebugNames::Entry &entry);
84 llvm::function_ref<
bool(
DWARFDIE die)> callback);
87 const DebugNames::NameIndex &ni,
88 llvm::StringRef name);
static llvm::raw_ostream & error(Stream &strm)
Represents a generic declaration context in a program.
A uniqued constant string class.
A class that encapsulates name lookup information.
A class that describes an executable image and its associated object and symbol files.
A stream class that can stream formatted output to a file.
DebugNamesDWARFIndex(Module &module, std::unique_ptr< llvm::DWARFDebugNames > debug_names_up, DWARFDataExtractor debug_names_data, DWARFDataExtractor debug_str_data, SymbolFileDWARF &dwarf)
static llvm::Expected< std::unique_ptr< DebugNamesDWARFIndex > > Create(Module &module, DWARFDataExtractor debug_names, DWARFDataExtractor debug_str, SymbolFileDWARF &dwarf)
DWARFDataExtractor m_debug_names_data
static void MaybeLogLookupError(llvm::Error error, const DebugNames::NameIndex &ni, llvm::StringRef name)
ManualDWARFIndex m_fallback
std::optional< DIERef > ToDIERef(const DebugNames::Entry &entry)
void GetTypes(ConstString name, llvm::function_ref< bool(DWARFDIE die)> callback) override
void GetNamespaces(ConstString name, llvm::function_ref< bool(DWARFDIE die)> callback) override
llvm::DWARFDebugNames DebugNames
void Dump(Stream &s) override
bool ProcessEntry(const DebugNames::Entry &entry, llvm::function_ref< bool(DWARFDIE die)> callback)
DWARFDataExtractor m_debug_str_data
void GetGlobalVariables(ConstString basename, llvm::function_ref< bool(DWARFDIE die)> callback) override
Finds global variables with the given base name.
void GetCompleteObjCClass(ConstString class_name, bool must_be_implementation, llvm::function_ref< bool(DWARFDIE die)> callback) override
void GetObjCMethods(ConstString class_name, llvm::function_ref< bool(DWARFDIE die)> callback) override
DWARFDebugInfo & m_debug_info
void GetFunctions(const Module::LookupInfo &lookup_info, SymbolFileDWARF &dwarf, const CompilerDeclContext &parent_decl_ctx, llvm::function_ref< bool(DWARFDIE die)> callback) override
static llvm::DenseSet< dw_offset_t > GetUnits(const DebugNames &debug_names)
std::unique_ptr< DebugNames > m_debug_names_up