Lines Matching refs:die
49 DWARFDIE die = m_worklist.back(); in Next() local
54 if (DWARFDIE d = die.GetReferencedDIE(attr)) in Next()
55 if (m_seen.insert(die.GetDIE()).second) in Next()
82 elaborating_dies(const DWARFDIE &die) { in elaborating_dies() argument
83 return llvm::make_range(ElaboratingDIEIterator(die), in elaborating_dies()
364 lldb_private::Type *DWARFDIE::ResolveTypeUID(const DWARFDIE &die) const { in ResolveTypeUID()
366 return dwarf->ResolveTypeUID(die, true); in ResolveTypeUID()
370 static void GetDeclContextImpl(DWARFDIE die, in GetDeclContextImpl() argument
374 while (die && seen.insert(die.GetID()).second) { in GetDeclContextImpl()
376 if (DWARFDIE spec = die.GetReferencedDIE(DW_AT_specification)) { in GetDeclContextImpl()
377 die = spec; in GetDeclContextImpl()
381 if (DWARFDIE spec = die.GetReferencedDIE(DW_AT_signature)) { in GetDeclContextImpl()
382 die = spec; in GetDeclContextImpl()
390 switch (die.Tag()) { in GetDeclContextImpl()
392 push_ctx(CompilerContextKind::Module, die.GetName()); in GetDeclContextImpl()
395 push_ctx(CompilerContextKind::Namespace, die.GetName()); in GetDeclContextImpl()
399 push_ctx(CompilerContextKind::ClassOrStruct, die.GetName()); in GetDeclContextImpl()
402 push_ctx(CompilerContextKind::Union, die.GetName()); in GetDeclContextImpl()
405 push_ctx(CompilerContextKind::Enum, die.GetName()); in GetDeclContextImpl()
408 push_ctx(CompilerContextKind::Function, die.GetName()); in GetDeclContextImpl()
411 push_ctx(CompilerContextKind::Variable, die.GetPubname()); in GetDeclContextImpl()
414 push_ctx(CompilerContextKind::Typedef, die.GetName()); in GetDeclContextImpl()
420 die = die.GetParent(); in GetDeclContextImpl()
432 static void GetTypeLookupContextImpl(DWARFDIE die, in GetTypeLookupContextImpl() argument
436 while (die && seen.insert(die.GetID()).second) { in GetTypeLookupContextImpl()
438 if (DWARFDIE spec = die.GetReferencedDIE(DW_AT_signature)) { in GetTypeLookupContextImpl()
439 die = spec; in GetTypeLookupContextImpl()
445 const char *name = die.GetName(); in GetTypeLookupContextImpl()
453 switch (die.Tag()) { in GetTypeLookupContextImpl()
455 push_ctx(CompilerContextKind::Namespace, die.GetName()); in GetTypeLookupContextImpl()
459 push_ctx(CompilerContextKind::ClassOrStruct, die.GetName()); in GetTypeLookupContextImpl()
462 push_ctx(CompilerContextKind::Union, die.GetName()); in GetTypeLookupContextImpl()
465 push_ctx(CompilerContextKind::Enum, die.GetName()); in GetTypeLookupContextImpl()
468 push_ctx(CompilerContextKind::Variable, die.GetPubname()); in GetTypeLookupContextImpl()
471 push_ctx(CompilerContextKind::Typedef, die.GetName()); in GetTypeLookupContextImpl()
492 die = die.GetParent(); in GetTypeLookupContextImpl()
504 static DWARFDeclContext GetDWARFDeclContextImpl(DWARFDIE die) { in GetDWARFDeclContextImpl() argument
506 while (die) { in GetDWARFDeclContextImpl()
507 const dw_tag_t tag = die.Tag(); in GetDWARFDeclContextImpl()
510 dwarf_decl_ctx.AppendDeclContext(tag, die.GetName()); in GetDWARFDeclContextImpl()
511 DWARFDIE parent_decl_ctx_die = die.GetParentDeclContextDIE(); in GetDWARFDeclContextImpl()
512 if (parent_decl_ctx_die == die) in GetDWARFDeclContextImpl()
514 die = parent_decl_ctx_die; in GetDWARFDeclContextImpl()
523 static DWARFDIE GetParentDeclContextDIEImpl(DWARFDIE die) { in GetParentDeclContextDIEImpl() argument
524 DWARFDIE orig_die = die; in GetParentDeclContextDIEImpl()
525 while (die) { in GetParentDeclContextDIEImpl()
529 if (die != orig_die) { in GetParentDeclContextDIEImpl()
530 switch (die.Tag()) { in GetParentDeclContextDIEImpl()
537 return die; in GetParentDeclContextDIEImpl()
544 if (DWARFDIE spec_die = die.GetReferencedDIE(DW_AT_specification)) { in GetParentDeclContextDIEImpl()
549 if (DWARFDIE abs_die = die.GetReferencedDIE(DW_AT_abstract_origin)) { in GetParentDeclContextDIEImpl()
554 die = die.GetParent(); in GetParentDeclContextDIEImpl()