Home
last modified time | relevance | path

Searched refs:DIERef (Results 1 – 25 of 25) sorted by relevance

/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDIERef.h30 class DIERef {
33 DIERef(std::optional<uint32_t> file_index, Section section, in DIERef() function
40 explicit DIERef(lldb::user_id_t uid) { in DIERef() function
69 bool operator<(DIERef other) const {
79 bool operator==(const DIERef &rhs) const {
84 bool operator!=(const DIERef &rhs) const { return !(*this == rhs); }
98 static std::optional<DIERef> Decode(const DataExtractor &data,
133 static_assert(sizeof(DIERef) == 8);
135 typedef std::vector<DIERef> DIEArray;
140 template <> struct format_provider<lldb_private::plugin::dwarf::DIERef> {
[all …]
H A DDIERef.cpp19 void llvm::format_provider<DIERef>::format(const DIERef &ref, raw_ostream &OS, in format()
23 OS << (ref.section() == DIERef::DebugInfo ? "INFO" : "TYPE"); in format()
27 std::optional<DIERef> DIERef::Decode(const DataExtractor &data, in Decode()
29 DIERef die_ref(data.GetU64(offset_ptr)); in Decode()
39 void DIERef::Encode(DataEncoder &encoder) const { encoder.AppendU64(get_id()); } in Encode()
H A DDWARFDebugInfo.h37 DWARFUnit *GetUnitAtOffset(DIERef::Section section, dw_offset_t cu_offset,
39 DWARFUnit *GetUnitContainingDIEOffset(DIERef::Section section,
41 DWARFUnit *GetUnit(const DIERef &die_ref);
44 DWARFDIE GetDIE(const DIERef &die_ref);
49 llvm::StringRef PeekDIEName(const DIERef &die_ref);
79 void ParseUnitsFor(DIERef::Section section);
81 uint32_t FindUnitIndex(DIERef::Section section, dw_offset_t offset);
H A DNameToDIE.cpp26 m_map.Sort(std::less<DIERef>()); in Finalize()
30 void NameToDIE::Insert(ConstString name, const DIERef &die_ref) { in Insert()
35 llvm::function_ref<bool(DIERef ref)> callback) const { in Find()
43 llvm::function_ref<bool(DIERef ref)> callback) const { in Find()
53 DWARFUnit &s_unit, llvm::function_ref<bool(DIERef ref)> callback) const { in FindAllEntriesForUnit()
57 const DIERef &die_ref = m_map.GetValueAtIndexUnchecked(i); in FindAllEntriesForUnit()
77 std::function<bool(ConstString name, const DIERef &die_ref)> const in ForEach()
110 if (std::optional<DIERef> die_ref = DIERef::Decode(data, offset_ptr)) in Decode()
124 m_map.Sort(std::less<DIERef>()); in Decode()
H A DDWARFDebugInfo.cpp78 void DWARFDebugInfo::ParseUnitsFor(DIERef::Section section) { in ParseUnitsFor()
79 DWARFDataExtractor data = section == DIERef::Section::DebugTypes in ParseUnitsFor()
107 ParseUnitsFor(DIERef::Section::DebugInfo); in ParseUnitHeadersIfNeeded()
108 ParseUnitsFor(DIERef::Section::DebugTypes); in ParseUnitHeadersIfNeeded()
125 uint32_t DWARFDebugInfo::FindUnitIndex(DIERef::Section section, in FindUnitIndex()
133 [](const std::pair<DIERef::Section, dw_offset_t> &lhs, in FindUnitIndex()
143 DWARFUnit *DWARFDebugInfo::GetUnitAtOffset(DIERef::Section section, in GetUnitAtOffset()
157 DWARFUnit *DWARFDebugInfo::GetUnit(const DIERef &die_ref) { in GetUnit()
162 DWARFDebugInfo::GetUnitContainingDIEOffset(DIERef::Section section, in GetUnitContainingDIEOffset()
188 DWARFDebugInfo::GetDIE(const DIERef &die_ref) { in GetDIE()
[all …]
H A DNameToDIE.h31 void Insert(ConstString name, const DIERef &die_ref);
38 llvm::function_ref<bool(DIERef ref)> callback) const;
41 llvm::function_ref<bool(DIERef ref)> callback) const;
46 llvm::function_ref<bool(DIERef ref)> callback) const;
49 ForEach(std::function<bool(ConstString name, const DIERef &die_ref)> const
89 UniqueCStringMap<DIERef> m_map;
H A DDWARFIndex.cpp27 const Module::LookupInfo &lookup_info, DIERef ref, SymbolFileDWARF &dwarf, in ProcessFunctionDIE()
98 bool DWARFIndex::DIERefCallbackImpl::operator()(DIERef ref) const { in operator ()()
107 return this->operator()(DIERef(std::nullopt, DIERef::Section::DebugInfo, in operator ()()
111 void DWARFIndex::ReportInvalidDIERef(DIERef ref, llvm::StringRef name) const { in ReportInvalidDIERef()
H A DDebugNamesDWARFIndex.cpp50 std::optional<DIERef>
62 m_debug_info.GetUnitAtOffset(DIERef::Section::DebugInfo, *unit_offset); in ToDIERef()
68 return DIERef(cu->GetSymbolFileDWARF().GetFileIndex(), in ToDIERef()
69 DIERef::Section::DebugInfo, cu->GetOffset() + *die_offset); in ToDIERef()
77 std::optional<DIERef> ref = ToDIERef(entry); in ProcessEntry()
189 std::optional<DIERef> ref = ToDIERef(entry); in GetCompleteObjCClass()
214 for (DIERef ref : incomplete_types) in GetCompleteObjCClass()
275 if (std::optional<DIERef> ref = ToDIERef(entry)) { in GetFunctions()
H A DDWARFBaseDIE.cpp23 std::optional<DIERef> DWARFBaseDIE::GetDIERef() const { in GetDIERef()
27 return DIERef(m_cu->GetSymbolFileDWARF().GetFileIndex(), in GetDIERef()
74 const std::optional<DIERef> &ref = this->GetDIERef(); in GetID()
H A DDWARFIndex.h87 bool ProcessFunctionDIE(const Module::LookupInfo &lookup_info, DIERef ref,
97 bool operator()(DIERef ref) const;
112 void ReportInvalidDIERef(DIERef ref, llvm::StringRef name) const;
H A DAppleDWARFIndex.cpp192 llvm::SmallVector<DIERef> decl_dies; in GetCompleteObjCClass()
201 decl_dies.emplace_back(std::nullopt, DIERef::Section::DebugInfo, in GetCompleteObjCClass()
207 for (DIERef ref : decl_dies) in GetCompleteObjCClass()
285 DIERef die_ref(std::nullopt, DIERef::Section::DebugInfo, in GetFunctions()
H A DDWARFUnit.h84 DIERef::Section section,
96 const DWARFDataExtractor &debug_info, DIERef::Section section,
233 DIERef::Section GetDebugSection() const { return m_section; } in GetDebugSection()
307 DIERef::Section section, bool is_dwo);
378 const DIERef::Section m_section;
H A DDWARFBaseDIE.h20 class DIERef; variable
61 std::optional<DIERef> GetDIERef() const;
H A DSymbolFileDWARF.h242 virtual DWARFDIE GetDIE(const DIERef &die_ref);
333 typedef llvm::DenseMap<lldb::opaque_compiler_type_t, DIERef>
361 Type *ResolveTypeUID(const DIERef &die_ref);
422 llvm::ArrayRef<DIERef> variable_dies,
449 FindBlockContainingSpecification(const DIERef &func_die_ref,
523 typedef std::set<DIERef> DIERefSet;
H A DSymbolFileDWARFDwo.cpp45 DebugInfo().GetUnitAtOffset(DIERef::Section::DebugInfo, in GetDWOCompileUnitForHash()
140 SymbolFileDWARFDwo::GetDIE(const DIERef &die_ref) { in GetDIE()
H A DDWARFTypeUnit.h37 DIERef::Section section, bool is_dwo) in DWARFTypeUnit()
H A DDWARFCompileUnit.h37 DIERef::Section section, bool is_dwo) in DWARFCompileUnit()
H A DSymbolFileDWARFDwo.h44 GetDIE(const DIERef &die_ref) override;
H A DDWARFUnit.cpp38 DIERef::Section section, bool is_dwo) in DWARFUnit()
935 DIERef::Section section, DWARFContext &context, in extract()
952 section == DIERef::Section::DebugTypes ? DW_UT_type : DW_UT_compile; in extract()
986 DIERef::Section section, lldb::offset_t *offset_ptr) { in extract()
1044 return m_section == DIERef::Section::DebugTypes in GetData()
H A DDebugNamesDWARFIndex.h82 std::optional<DIERef> ToDIERef(const DebugNames::Entry &entry) const;
H A DSymbolFileDWARF.cpp1478 SymbolFileDWARF::GetDIE(lldb::user_id_t uid) { return GetDIE(DIERef(uid)); } in GetDIE()
1547 Type *SymbolFileDWARF::ResolveTypeUID(const DIERef &die_ref) { in ResolveTypeUID()
1729 SymbolFileDWARF::GetDIE(const DIERef &die_ref) { in GetDIE()
1752 if (*file_index == DIERef::k_file_index_mask) in GetDIE()
2185 debug_info.GetUnitAtOffset(DIERef::Section::DebugInfo, cu_offset, in ResolveSymbolContext()
2634 for (DIERef die_ref : in GetMangledNamesForFunction()
3293 const dw_offset_t function_die_offset = DIERef(func.GetID()).die_offset(); in ParseBlocksRecursive()
3742 const DIERef &func_die_ref, dw_offset_t spec_block_die_offset) { in FindBlockContainingSpecification()
4002 llvm::ArrayRef<DIERef> variable_dies, lldb::addr_t func_low_pc) { in PopulateBlockVariableList()
4344 *this, dwp_obj_file, DIERef::k_file_index_mask); in GetDwpSymbolFile()
H A DSymbolFileDWARFDebugMap.h204 std::optional<uint32_t> OsoNum = DIERef(uid).file_index(); in GetOSOIndexFromUserID()
H A DDWARFFormValue.cpp525 DIERef::Section::DebugInfo, value); in ReferencedUnitAndOffset()
H A DManualDWARFIndex.cpp281 DIERef ref = *DWARFDIE(&unit, &die).GetDIERef(); in IndexUnitImpl()
/freebsd-14.2/lib/clang/liblldb/
H A DMakefile543 SRCS+= Plugins/SymbolFile/DWARF/DIERef.cpp