9#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_APPLEDWARFINDEX_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_APPLEDWARFINDEX_H
14#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"
20 static std::unique_ptr<AppleDWARFIndex>
26 std::unique_ptr<llvm::AppleAcceleratorTable> apple_names,
27 std::unique_ptr<llvm::AppleAcceleratorTable> apple_namespaces,
28 std::unique_ptr<llvm::AppleAcceleratorTable> apple_types,
29 std::unique_ptr<llvm::AppleAcceleratorTable> apple_objc,
58 ConstString class_name,
bool must_be_implementation,
99 void SearchFor(
const llvm::AppleAcceleratorTable &table, llvm::StringRef name,
101 std::optional<dw_tag_t> search_for_tag = std::nullopt,
102 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)
std::unique_ptr< llvm::AppleAcceleratorTable > m_apple_types_up
void SearchFor(const llvm::AppleAcceleratorTable &table, llvm::StringRef name, llvm::function_ref< IterationAction(DWARFDIE die)> callback, std::optional< dw_tag_t > search_for_tag=std::nullopt, std::optional< uint32_t > search_for_qualhash=std::nullopt)
}
static std::unique_ptr< AppleDWARFIndex > Create(Module &module, DWARFDataExtractor apple_names, DWARFDataExtractor apple_namespaces, DWARFDataExtractor apple_types, DWARFDataExtractor apple_objc, DWARFDataExtractor debug_str)
void GetNamespaces(ConstString name, llvm::function_ref< IterationAction(DWARFDIE die)> callback) override
void GetTypes(ConstString name, llvm::function_ref< IterationAction(DWARFDIE die)> callback) override
std::unique_ptr< llvm::AppleAcceleratorTable > m_apple_names_up
lldb::DataBufferSP m_apple_types_storage
void GetCompleteObjCClass(ConstString class_name, bool must_be_implementation, llvm::function_ref< IterationAction(DWARFDIE die)> callback) override
lldb::DataBufferSP m_apple_names_storage
The following storage variables hold the data that the apple accelerator tables tables above point to...
void GetObjCMethods(ConstString class_name, llvm::function_ref< IterationAction(DWARFDIE die)> callback) override
void GetFunctions(const Module::LookupInfo &lookup_info, SymbolFileDWARF &dwarf, const CompilerDeclContext &parent_decl_ctx, llvm::function_ref< IterationAction(DWARFDIE die)> callback) override
std::unique_ptr< llvm::AppleAcceleratorTable > m_apple_namespaces_up
void Dump(Stream &s) override
std::unique_ptr< llvm::AppleAcceleratorTable > m_apple_objc_up
lldb::DataBufferSP m_apple_objc_storage
void GetGlobalVariables(ConstString basename, llvm::function_ref< IterationAction(DWARFDIE die)> callback) override
Finds global variables with the given base name.
DWARFIndex(Module &module)
IterationAction
Useful for callbacks whose return type indicates whether to continue iteration or short-circuit.
std::shared_ptr< lldb_private::DataBuffer > DataBufferSP