Lines Matching refs:cu

40                                   const DWARFUnit *cu,  in Extract()  argument
59 const auto *abbrevDecl = GetAbbreviationDeclarationPtr(cu); in Extract()
61 cu->GetSymbolFileDWARF().GetObjectFile()->GetModule()->ReportError( in Extract()
78 DWARFFormValue::GetFixedSize(form, cu); in Extract()
110 form_size = cu->GetAddressByteSize(); in Extract()
113 if (cu->GetVersion() <= 2) in Extract()
114 form_size = cu->GetAddressByteSize(); in Extract()
191 cu->GetSymbolFileDWARF().GetObjectFile()->GetModule()->ReportError( in Extract()
231 DWARFUnit *cu, const char *&name, const char *&mangled, in GetDIENamesAndRanges() argument
240 const auto *abbrevDecl = GetAbbreviationDeclarationPtr(cu); in GetDIENamesAndRanges()
242 SymbolFileDWARF &dwarf = cu->GetSymbolFileDWARF(); in GetDIENamesAndRanges()
246 const DWARFDataExtractor &data = cu->GetData(); in GetDIENamesAndRanges()
256 DWARFFormValue form_value(cu); in GetDIENamesAndRanges()
290 ranges = GetRangesOrReportError(*cu, *this, form_value); in GetDIENamesAndRanges()
352 cu); in GetDIENamesAndRanges()
354 DataExtractor data = cu->GetLocationData(); in GetDIENamesAndRanges()
359 assert(lo_pc >= cu->GetBaseAddress()); in GetDIENamesAndRanges()
360 DWARFExpression::ParseDWARFLocationList(cu, data, frame_base); in GetDIENamesAndRanges()
387 assert(lowest_range_pc >= cu->GetBaseAddress()); in GetDIENamesAndRanges()
407 size_t DWARFDebugInfoEntry::GetAttributes(DWARFUnit *cu, in GetAttributes() argument
411 const auto *abbrevDecl = GetAbbreviationDeclarationPtr(cu); in GetAttributes()
413 const DWARFDataExtractor &data = cu->GetData(); in GetAttributes()
418 DWARFFormValue form_value(cu); in GetAttributes()
450 llvm::Optional<uint8_t> fixed_skip_size = DWARFFormValue::GetFixedSize(form, cu); in GetAttributes()
454 DWARFFormValue::SkipValue(form, data, &offset, cu); in GetAttributes()
470 const DWARFUnit *cu, const dw_attr_t attr, DWARFFormValue &form_value, in GetAttributeValue() argument
473 if (const auto *abbrevDecl = GetAbbreviationDeclarationPtr(cu)) { in GetAttributeValue()
477 const DWARFDataExtractor &data = cu->GetData(); in GetAttributeValue()
483 data, &offset, cu); in GetAttributeValue()
486 form_value.SetUnit(cu); in GetAttributeValue()
497 if (GetAttributeValue(cu, DW_AT_specification, form_value)) { in GetAttributeValue()
507 if (GetAttributeValue(cu, DW_AT_abstract_origin, form_value)) { in GetAttributeValue()
527 const DWARFUnit *cu, const dw_attr_t attr, const char *fail_value, in GetAttributeValueAsString() argument
530 if (GetAttributeValue(cu, attr, form_value, nullptr, in GetAttributeValueAsString()
540 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, in GetAttributeValueAsUnsigned() argument
543 if (GetAttributeValue(cu, attr, form_value, nullptr, in GetAttributeValueAsUnsigned()
554 const DWARFUnit *cu, const dw_attr_t attr, in GetAttributeValueAsReference() argument
557 if (GetAttributeValue(cu, attr, form_value, nullptr, in GetAttributeValueAsReference()
564 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, in GetAttributeValueAsAddress() argument
567 if (GetAttributeValue(cu, attr, form_value, nullptr, in GetAttributeValueAsAddress()
580 const DWARFUnit *cu, dw_addr_t lo_pc, uint64_t fail_value, in GetAttributeHighPC() argument
583 if (GetAttributeValue(cu, DW_AT_high_pc, form_value, nullptr, in GetAttributeHighPC()
603 const DWARFUnit *cu, dw_addr_t &lo_pc, dw_addr_t &hi_pc, in GetAttributeAddressRange() argument
605 lo_pc = GetAttributeValueAsAddress(cu, DW_AT_low_pc, fail_value, in GetAttributeAddressRange()
608 hi_pc = GetAttributeHighPC(cu, lo_pc, fail_value, in GetAttributeAddressRange()
619 DWARFUnit *cu, DWARFRangeList &ranges, bool check_hi_lo_pc, in GetAttributeAddressRanges() argument
624 if (GetAttributeValue(cu, DW_AT_ranges, form_value)) { in GetAttributeAddressRanges()
625 ranges = GetRangesOrReportError(*cu, *this, form_value); in GetAttributeAddressRanges()
629 if (GetAttributeAddressRange(cu, lo_pc, hi_pc, LLDB_INVALID_ADDRESS, in GetAttributeAddressRanges()
642 const char *DWARFDebugInfoEntry::GetName(const DWARFUnit *cu) const { in GetName()
643 return GetAttributeValueAsString(cu, DW_AT_name, nullptr, true); in GetName()
651 DWARFDebugInfoEntry::GetMangledName(const DWARFUnit *cu, in GetMangledName() argument
655 name = GetAttributeValueAsString(cu, DW_AT_MIPS_linkage_name, nullptr, true); in GetMangledName()
659 name = GetAttributeValueAsString(cu, DW_AT_linkage_name, nullptr, true); in GetMangledName()
666 name = GetAttributeValueAsString(cu, DW_AT_name, nullptr, true); in GetMangledName()
674 const char *DWARFDebugInfoEntry::GetPubname(const DWARFUnit *cu) const { in GetPubname()
676 if (!cu) in GetPubname()
679 name = GetAttributeValueAsString(cu, DW_AT_MIPS_linkage_name, nullptr, true); in GetPubname()
683 name = GetAttributeValueAsString(cu, DW_AT_linkage_name, nullptr, true); in GetPubname()
687 name = GetAttributeValueAsString(cu, DW_AT_name, nullptr, true); in GetPubname()
695 DWARFUnit *cu, DWARFDebugAranges *debug_aranges) const { in BuildFunctionAddressRangeTable() argument
699 GetAttributeAddressRanges(cu, ranges, in BuildFunctionAddressRangeTable()
709 child->BuildFunctionAddressRangeTable(cu, debug_aranges); in BuildFunctionAddressRangeTable()
717 DWARFUnit *cu) { in GetDWARFDeclContextStatic() argument
723 dwarf_decl_ctx.AppendDeclContext(tag, die->GetName(cu)); in GetDWARFDeclContextStatic()
724 DWARFDIE parent_decl_ctx_die = die->GetParentDeclContextDIE(cu); in GetDWARFDeclContextStatic()
731 cu = parent_decl_ctx_die.GetCU(); in GetDWARFDeclContextStatic()
735 DWARFDeclContext DWARFDebugInfoEntry::GetDWARFDeclContext(DWARFUnit *cu) const { in GetDWARFDeclContext()
736 return GetDWARFDeclContextStatic(this, cu); in GetDWARFDeclContext()
740 DWARFDebugInfoEntry::GetParentDeclContextDIE(DWARFUnit *cu) const { in GetParentDeclContextDIE()
742 GetAttributes(cu, attributes, Recurse::yes); in GetParentDeclContextDIE()
743 return GetParentDeclContextDIE(cu, attributes); in GetParentDeclContextDIE()
748 DWARFUnit *cu, const DWARFAttributes &attributes) const { in GetParentDeclContextDIE() argument
749 DWARFDIE die(cu, const_cast<DWARFDebugInfoEntry *>(this)); in GetParentDeclContextDIE()
789 const char *DWARFDebugInfoEntry::GetQualifiedName(DWARFUnit *cu, in GetQualifiedName() argument
792 GetAttributes(cu, attributes, Recurse::yes); in GetQualifiedName()
793 return GetQualifiedName(cu, attributes, storage); in GetQualifiedName()
797 DWARFDebugInfoEntry::GetQualifiedName(DWARFUnit *cu, in GetQualifiedName() argument
801 const char *name = GetName(cu); in GetQualifiedName()
804 DWARFDIE parent_decl_ctx_die = GetParentDeclContextDIE(cu); in GetQualifiedName()
854 DWARFDebugInfoEntry::GetAbbreviationDeclarationPtr(const DWARFUnit *cu) const { in GetAbbreviationDeclarationPtr()
855 if (cu) { in GetAbbreviationDeclarationPtr()
856 const DWARFAbbreviationDeclarationSet *abbrev_set = cu->GetAbbreviations(); in GetAbbreviationDeclarationPtr()