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"
23 static llvm::Expected<std::unique_ptr<DebugNamesDWARFIndex>>
31 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
34 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
37 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
40 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override {}
42 ConstString class_name,
bool must_be_implementation,
43 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
45 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
47 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
49 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
53 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
55 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
61 std::unique_ptr<llvm::DWARFDebugNames> debug_names_up,
81 std::optional<DIERef>
ToDIERef(
const DebugNames::Entry &entry);
83 llvm::function_ref<
bool(
DWARFDIE die)> callback,
84 llvm::StringRef name);
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.
DWARFDataExtractor m_debug_names_data
static llvm::Expected< std::unique_ptr< DebugNamesDWARFIndex > > Create(Module &module, DWARFDataExtractor debug_names, DWARFDataExtractor debug_str, SymbolFileDWARF &dwarf)
static void MaybeLogLookupError(llvm::Error error, const DebugNames::NameIndex &ni, llvm::StringRef name)
llvm::DWARFDebugNames DebugNames
std::optional< DIERef > ToDIERef(const DebugNames::Entry &entry)
void GetTypes(ConstString name, llvm::function_ref< bool(DWARFDIE die)> callback) override
void GetObjCMethods(ConstString class_name, llvm::function_ref< bool(DWARFDIE die)> callback) override
ManualDWARFIndex m_fallback
void GetNamespaces(ConstString name, llvm::function_ref< bool(DWARFDIE die)> callback) override
void Dump(Stream &s) override
DWARFDebugInfo & m_debug_info
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 GetFunctions(const Module::LookupInfo &lookup_info, SymbolFileDWARF &dwarf, const CompilerDeclContext &parent_decl_ctx, llvm::function_ref< bool(DWARFDIE die)> callback) override
bool ProcessEntry(const DebugNames::Entry &entry, llvm::function_ref< bool(DWARFDIE die)> callback, llvm::StringRef name)
static llvm::DenseSet< dw_offset_t > GetUnits(const DebugNames &debug_names)
std::unique_ptr< DebugNames > m_debug_names_up
DebugNamesDWARFIndex(Module &module, std::unique_ptr< llvm::DWARFDebugNames > debug_names_up, DWARFDataExtractor debug_names_data, DWARFDataExtractor debug_str_data, SymbolFileDWARF &dwarf)
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.
A class that represents a running process on the host machine.