17 return Tag == llvm::dwarf::Tag::DW_TAG_class_type ||
18 Tag == llvm::dwarf::Tag::DW_TAG_structure_type;
23 const int32_t byte_size,
bool is_forward_declaration) {
31 bool matching_size_declaration =
34 : (udt.m_byte_size < 0 || byte_size < 0 ||
35 udt.m_byte_size == byte_size) &&
36 udt.m_declaration == decl;
37 if (!matching_size_declaration)
45 while (!done && match && parent_arg_die && parent_pos_die) {
46 const dw_tag_t parent_arg_tag = parent_arg_die.
Tag();
47 const dw_tag_t parent_pos_tag = parent_pos_die.
Tag();
48 if (parent_arg_tag == parent_pos_tag ||
51 switch (parent_arg_tag) {
52 case DW_TAG_class_type:
53 case DW_TAG_structure_type:
54 case DW_TAG_union_type:
55 case DW_TAG_namespace: {
56 const char *parent_arg_die_name = parent_arg_die.
GetName();
57 if (parent_arg_die_name ==
nullptr) {
61 const char *parent_pos_die_name = parent_pos_die.
GetName();
62 if (parent_pos_die_name ==
nullptr ||
63 ((parent_arg_die_name != parent_pos_die_name) &&
64 strcmp(parent_arg_die_name, parent_pos_die_name)))
69 case DW_TAG_compile_unit:
70 case DW_TAG_partial_unit:
77 parent_arg_die = parent_arg_die.
GetParent();
78 parent_pos_die = parent_pos_die.
GetParent();
bool IsStructOrClassTag(llvm::dwarf::Tag Tag)
static bool IsStructOrClassTag(llvm::dwarf::Tag Tag)
A class that describes the declaration location of a lldb object.
DWARFDebugInfoEntry * m_die
void GetName(Stream &s) const
DWARFDIE GetParent() const
DWARFDebugInfoEntry * GetParent()
UniqueDWARFASTType * Find(const DWARFDIE &die, const Declaration &decl, const int32_t byte_size, bool is_forward_declaration)
bool m_is_forward_declaration
llvm::dwarf::Tag dw_tag_t