9#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFINDEX_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFINDEX_H
15#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"
22class DWARFDeclContext;
37 llvm::function_ref<
bool(
DWARFDIE die)> callback) = 0;
41 llvm::function_ref<
bool(
DWARFDIE die)> callback) = 0;
45 llvm::function_ref<
bool(
DWARFDIE die)> callback) = 0;
48 llvm::function_ref<
bool(
DWARFDIE die)> callback) = 0;
51 llvm::function_ref<
bool(
DWARFDIE die)> callback) = 0;
53 llvm::function_ref<
bool(
DWARFDIE die)> callback) = 0;
55 llvm::function_ref<
bool(
DWARFDIE die)> callback) = 0;
63 llvm::function_ref<
bool(
DWARFDIE die)> callback);
66 llvm::function_ref<
bool(
DWARFDIE die)> callback) = 0;
70 llvm::function_ref<
bool(
DWARFDIE die)> callback) = 0;
73 llvm::function_ref<
bool(
DWARFDIE die)> callback) = 0;
89 llvm::function_ref<
bool(
DWARFDIE die)> callback);
94 llvm::function_ref<
bool(
DWARFDIE die)> callback,
95 llvm::StringRef name);
97 bool operator()(
const llvm::AppleAcceleratorTable::Entry &entry)
const;
107 llvm::StringRef name = {})
const {
108 return DIERefCallbackImpl(*
this, callback, name);
117 llvm::function_ref<
bool(DWARFDIE die)> callback);
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.
std::chrono::duration< double > Duration
A stream class that can stream formatted output to a file.
Identifies a DWARF debug info entry within a given Module.
bool operator()(DIERef ref) const
SymbolFileDWARF & m_dwarf
const llvm::StringRef m_name
const llvm::function_ref< bool(DWARFDIE die)> m_callback
const DWARFIndex & m_index
virtual void GetTypes(ConstString name, llvm::function_ref< bool(DWARFDIE die)> callback)=0
virtual void GetTypes(const DWARFDeclContext &context, llvm::function_ref< bool(DWARFDIE die)> callback)=0
bool ProcessFunctionDIE(const Module::LookupInfo &lookup_info, DWARFDIE die, const CompilerDeclContext &parent_decl_ctx, llvm::function_ref< bool(DWARFDIE die)> callback)
Helper function implementing common logic for processing function dies.
virtual void GetObjCMethods(ConstString class_name, llvm::function_ref< bool(DWARFDIE die)> callback)=0
virtual void GetCompleteObjCClass(ConstString class_name, bool must_be_implementation, llvm::function_ref< bool(DWARFDIE die)> callback)=0
virtual void GetFunctions(const Module::LookupInfo &lookup_info, SymbolFileDWARF &dwarf, const CompilerDeclContext &parent_decl_ctx, llvm::function_ref< bool(DWARFDIE die)> callback)=0
StatsDuration::Duration GetIndexTime()
virtual void GetFunctions(const RegularExpression ®ex, llvm::function_ref< bool(DWARFDIE die)> callback)=0
StatsDuration m_index_time
DIERefCallbackImpl DIERefCallback(llvm::function_ref< bool(DWARFDIE die)> callback, llvm::StringRef name={}) const
virtual void GetGlobalVariables(const RegularExpression ®ex, llvm::function_ref< bool(DWARFDIE die)> callback)=0
virtual void Dump(Stream &s)=0
virtual void GetGlobalVariables(DWARFUnit &cu, llvm::function_ref< bool(DWARFDIE die)> callback)=0
cu must be the skeleton unit if possible, not GetNonSkeletonUnit().
virtual void GetFullyQualifiedType(const DWARFDeclContext &context, llvm::function_ref< bool(DWARFDIE die)> callback)
Finds all DIEs whose fully qualified name matches context.
void ReportInvalidDIERef(DIERef ref, llvm::StringRef name) const
virtual void GetNamespaces(ConstString name, llvm::function_ref< bool(DWARFDIE die)> callback)=0
virtual void GetGlobalVariables(ConstString basename, llvm::function_ref< bool(DWARFDIE die)> callback)=0
Finds global variables with the given base name.
DWARFIndex(Module &module)
bool GetFullyQualifiedTypeImpl(const DWARFDeclContext &context, DWARFDIE die, llvm::function_ref< bool(DWARFDIE die)> callback)
Implementation of GetFullyQualifiedType to check a single entry, shareable with derived classes.