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"
19 static std::unique_ptr<AppleDWARFIndex>
25 std::unique_ptr<llvm::AppleAcceleratorTable> apple_names,
26 std::unique_ptr<llvm::AppleAcceleratorTable> apple_namespaces,
27 std::unique_ptr<llvm::AppleAcceleratorTable> apple_types,
28 std::unique_ptr<llvm::AppleAcceleratorTable> apple_objc,
46 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
49 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;
56 ConstString class_name,
bool must_be_implementation,
57 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
59 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
61 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
63 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
67 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
69 llvm::function_ref<
bool(
DWARFDIE die)> callback)
override;
92 void SearchFor(
const llvm::AppleAcceleratorTable &table, llvm::StringRef name,
93 llvm::function_ref<
bool(
DWARFDIE die)> callback,
94 std::optional<dw_tag_t> search_for_tag = std::nullopt,
95 std::optional<uint32_t> search_for_qualhash = std::nullopt);
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.
lldb::DataBufferSP m_apple_namespaces_storage
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, lldb::DataBufferSP apple_names_storage, lldb::DataBufferSP apple_namespaces_storage, lldb::DataBufferSP apple_types_storage, lldb::DataBufferSP apple_objc_storage)
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_types_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)
void GetTypes(ConstString name, llvm::function_ref< bool(DWARFDIE die)> callback) override
std::unique_ptr< llvm::AppleAcceleratorTable > m_apple_names_up
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)
}
lldb::DataBufferSP m_apple_types_storage
lldb::DataBufferSP m_apple_names_storage
The following storage variables hold the data that the apple accelerator tables tables above point to...
std::unique_ptr< llvm::AppleAcceleratorTable > m_apple_namespaces_up
void Dump(Stream &s) override
std::unique_ptr< llvm::AppleAcceleratorTable > m_apple_objc_up
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
lldb::DataBufferSP m_apple_objc_storage
std::shared_ptr< lldb_private::DataBuffer > DataBufferSP