9#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDIE_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDIE_H
13#include "llvm/ADT/SmallSet.h"
14#include "llvm/ADT/iterator_range.h"
15#include "llvm/DebugInfo/DWARF/DWARFAddressRange.h"
32 const char *
GetMangledName(
bool substitute_name_allowed =
true)
const;
101 const char *&name,
const char *&mangled,
102 llvm::DWARFAddressRangesVector &ranges, std::optional<int> &decl_file,
103 std::optional<int> &decl_line, std::optional<int> &decl_column,
104 std::optional<int> &call_file, std::optional<int> &call_line,
119 std::optional<DWARFFormValue>
find(
const dw_attr_t attr)
const;
122 llvm::iterator_range<child_iterator>
children()
const;
124 child_iterator
begin()
const;
125 child_iterator
end()
const;
129 :
public llvm::iterator_facade_base<DWARFDIE::child_iterator,
130 std::forward_iterator_tag, DWARFDIE> {
147 assert(
m_die.
IsValid() &&
"Derefencing invalid iterator?");
151 assert(
m_die.
IsValid() &&
"Derefencing invalid iterator?");
155 assert(
m_die.
IsValid() &&
"Incrementing invalid iterator?");
"lldb/Expression/DWARFExpressionList.h" Encapsulates a range map from file address range to a single ...
A stream class that can stream formatted output to a file.
DWARFDebugInfoEntry * GetDIE() const
const char * GetName() const
DWARFDIE m_die
The current child or an invalid DWARFDie.
bool operator==(const child_iterator &it) const
child_iterator(const DWARFDIE &parent)
const DWARFDIE & operator*() const
child_iterator & operator++()
const char * GetMangledName(bool substitute_name_allowed=true) const
DWARFDIE resolveTypeUnitReference() const
DWARFDIE GetFirstChild() const
DWARFDIE GetParent() const
bool GetDIENamesAndRanges(const char *&name, const char *&mangled, llvm::DWARFAddressRangesVector &ranges, std::optional< int > &decl_file, std::optional< int > &decl_line, std::optional< int > &decl_column, std::optional< int > &call_file, std::optional< int > &call_line, std::optional< int > &call_column, DWARFExpressionList *frame_base) const
DWARFDIE resolveReferencedType(dw_attr_t attr) const
std::vector< CompilerContext > GetDeclContext() const
Return this DIE's decl context as it is needed to look up types in Clang modules.
llvm::iterator_range< child_iterator > children() const
The range of all the children of this DIE.
DWARFDIE GetParentDeclContextDIE() const
bool IsStructUnionOrClass() const
Type * ResolveTypeUID(const DWARFDIE &die) const
DWARFDIE LookupDeepestBlock(lldb::addr_t file_addr) const
std::optional< DWARFFormValue > find(const dw_attr_t attr) const
DWARFDIE GetAttributeValueAsReferenceDIE(const dw_attr_t attr) const
DWARFDebugInfoEntry * GetDIE() const
DWARFDeclContext GetDWARFDeclContext() const
std::optional< uint64_t > getLanguage() const
void AppendTypeName(Stream &s) const
child_iterator begin() const
DWARFDIE GetReferencedDIE(const dw_attr_t attr) const
Type * ResolveType() const
const char * GetName() const
DWARFDIE getParent() const
std::vector< CompilerContext > GetTypeLookupContext() const
Get a context to a type so it can be looked up.
const char * GetPubname() const
DWARFDIE GetSibling() const
child_iterator end() const
llvm::dwarf::Attribute dw_attr_t