9#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_APPLEDWARFINDEX_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_APPLEDWARFINDEX_H
13#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"
18 static std::unique_ptr<AppleDWARFIndex>
24 std::unique_ptr<llvm::AppleAcceleratorTable> apple_names,
25 std::unique_ptr<llvm::AppleAcceleratorTable> apple_namespaces,
26 std::unique_ptr<llvm::AppleAcceleratorTable> apple_types,
27 std::unique_ptr<llvm::AppleAcceleratorTable> apple_objc)
37 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
40 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
43 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
45 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
47 ConstString class_name,
bool must_be_implementation,
48 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
50 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
52 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
54 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
58 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
60 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
75 void SearchFor(
const llvm::AppleAcceleratorTable &table, llvm::StringRef name,
76 llvm::function_ref<
bool(
DWARFDIE die)> callback,
77 std::optional<dw_tag_t> search_for_tag = std::nullopt,
78 std::optional<uint32_t> search_for_qualhash = std::nullopt);
void GetGlobalVariables(ConstString basename, llvm::function_ref< bool(DWARFDIE die)> callback) override
Finds global variables with the given base name.
std::unique_ptr< llvm::AppleAcceleratorTable > m_apple_objc_up
void GetNamespaces(ConstString name, llvm::function_ref< bool(DWARFDIE die)> callback) override
void GetObjCMethods(ConstString class_name, llvm::function_ref< bool(DWARFDIE die)> callback) override
static std::unique_ptr< AppleDWARFIndex > Create(Module &module, DWARFDataExtractor apple_names, DWARFDataExtractor apple_namespaces, DWARFDataExtractor apple_types, DWARFDataExtractor apple_objc, DWARFDataExtractor debug_str)
std::unique_ptr< llvm::AppleAcceleratorTable > m_apple_types_up
std::unique_ptr< llvm::AppleAcceleratorTable > m_apple_namespaces_up
std::unique_ptr< llvm::AppleAcceleratorTable > m_apple_names_up
void GetTypes(ConstString name, llvm::function_ref< bool(DWARFDIE die)> callback) override
void SearchFor(const llvm::AppleAcceleratorTable &table, llvm::StringRef name, llvm::function_ref< bool(DWARFDIE die)> callback, std::optional< dw_tag_t > search_for_tag=std::nullopt, std::optional< uint32_t > search_for_qualhash=std::nullopt)
Search for entries whose name is name in table, calling callback for each match.
void Dump(Stream &s) override
void GetFunctions(const Module::LookupInfo &lookup_info, SymbolFileDWARF &dwarf, const CompilerDeclContext &parent_decl_ctx, llvm::function_ref< bool(DWARFDIE die)> callback) override
void GetCompleteObjCClass(ConstString class_name, bool must_be_implementation, llvm::function_ref< bool(DWARFDIE die)> callback) override
AppleDWARFIndex(Module &module, std::unique_ptr< llvm::AppleAcceleratorTable > apple_names, std::unique_ptr< llvm::AppleAcceleratorTable > apple_namespaces, std::unique_ptr< llvm::AppleAcceleratorTable > apple_types, std::unique_ptr< llvm::AppleAcceleratorTable > apple_objc)
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.
A class that represents a running process on the host machine.