Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/
H A DDIERef.h26 class DIERef {
30 DIERef(std::optional<uint32_t> dwo_num, Section section, in DIERef() function
47 bool operator<(DIERef other) const {
57 bool operator==(const DIERef &rhs) const {
62 bool operator!=(const DIERef &rhs) const { return !(*this == rhs); }
76 static std::optional<DIERef> Decode(const lldb_private::DataExtractor &data,
94 static_assert(sizeof(DIERef) == 8);
96 typedef std::vector<DIERef> DIEArray;
99 template<> struct format_provider<DIERef> {
100 static void format(const DIERef &ref, raw_ostream &OS, StringRef Style);
H A DDIERef.cpp18 void llvm::format_provider<DIERef>::format(const DIERef &ref, raw_ostream &OS, in format()
22 OS << (ref.section() == DIERef::DebugInfo ? "INFO" : "TYPE"); in format()
30 std::optional<DIERef> DIERef::Decode(const DataExtractor &data, in Decode()
42 return DIERef(dwo_num, section, die_offset); in Decode()
44 return DIERef(std::nullopt, section, die_offset); in Decode()
47 void DIERef::Encode(DataEncoder &encoder) const { in Encode()
H A DHashedNameToDIE.h67 explicit operator DIERef() const { in DIERef() function
68 return DIERef(std::nullopt, DIERef::Section::DebugInfo, die_offset); in DIERef()
144 llvm::function_ref<bool(DIERef ref)> callback);
147 llvm::function_ref<bool(DIERef ref)> callback);
152 llvm::function_ref<bool(DIERef ref)> callback);
156 llvm::function_ref<bool(DIERef ref)> callback,
176 llvm::function_ref<bool(DIERef ref)> callback);
181 llvm::function_ref<bool(DIERef ref)> callback);
186 llvm::function_ref<bool(DIERef ref)> callback);
191 llvm::function_ref<bool(DIERef ref)> callback);
[all …]
H A DNameToDIE.cpp25 m_map.Sort(std::less<DIERef>()); in Finalize()
29 void NameToDIE::Insert(ConstString name, const DIERef &die_ref) { in Insert()
34 llvm::function_ref<bool(DIERef ref)> callback) const { in Find()
42 llvm::function_ref<bool(DIERef ref)> callback) const { in Find()
52 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 DNameToDIE.h29 void Insert(lldb_private::ConstString name, const DIERef &die_ref);
36 llvm::function_ref<bool(DIERef ref)> callback) const;
39 llvm::function_ref<bool(DIERef ref)> callback) const;
44 llvm::function_ref<bool(DIERef ref)> callback) const;
48 const DIERef &die_ref)> const
90 lldb_private::UniqueCStringMap<DIERef> m_map;
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()
H A DDWARFDebugInfo.h39 DWARFUnit *GetUnitAtOffset(DIERef::Section section, dw_offset_t cu_offset,
41 DWARFUnit *GetUnitContainingDIEOffset(DIERef::Section section,
43 DWARFUnit *GetUnit(const DIERef &die_ref);
46 DWARFDIE GetDIE(const DIERef &die_ref);
76 void ParseUnitsFor(DIERef::Section section);
78 uint32_t FindUnitIndex(DIERef::Section section, dw_offset_t offset);
H A DHashedNameToDIE.cpp16 llvm::function_ref<bool(DIERef ref)> callback) { in ExtractDIEArray()
19 if (!callback(DIERef(die_info_array[i]))) in ExtractDIEArray()
26 llvm::function_ref<bool(DIERef ref)> callback) { in ExtractDIEArray()
41 if (!callback(DIERef(die_info_array[i]))) in ExtractDIEArray()
50 llvm::function_ref<bool(DIERef ref)> callback) { in ExtractDIEArray()
67 if (!callback(DIERef(die_info_array[i]))) in ExtractDIEArray()
76 llvm::function_ref<bool(DIERef ref)> callback) { in ExtractClassOrStructDIEArray()
90 callback(DIERef(die_info_array[i])); in ExtractClassOrStructDIEArray()
93 if (!callback(DIERef(die_info_array[i]))) in ExtractClassOrStructDIEArray()
100 uint32_t type_flag_value, llvm::function_ref<bool(DIERef ref)> callback) { in ExtractTypesFromDIEArray()
[all …]
H A DDebugNamesDWARFIndex.cpp45 std::optional<DIERef>
51 DWARFUnit *cu = m_debug_info.GetUnitAtOffset(DIERef::Section::DebugInfo, *cu_offset); in ToDIERef()
57 return DIERef(cu->GetSymbolFileDWARF().GetDwoNum(), in ToDIERef()
58 DIERef::Section::DebugInfo, cu->GetOffset() + *die_offset); in ToDIERef()
66 std::optional<DIERef> ref = ToDIERef(entry); in ProcessEntry()
169 std::optional<DIERef> ref = ToDIERef(entry); in GetCompleteObjCClass()
194 for (DIERef ref : incomplete_types) in GetCompleteObjCClass()
253 if (std::optional<DIERef> ref = ToDIERef(entry)) { in GetFunctions()
H A DDWARFIndex.cpp24 const Module::LookupInfo &lookup_info, DIERef ref, SymbolFileDWARF &dwarf, in ProcessFunctionDIE()
95 bool DWARFIndex::DIERefCallbackImpl::operator()(DIERef ref) const { in operator ()()
102 void DWARFIndex::ReportInvalidDIERef(DIERef ref, llvm::StringRef name) const { in ReportInvalidDIERef()
H A DDWARFIndex.h77 bool ProcessFunctionDIE(const Module::LookupInfo &lookup_info, DIERef ref,
87 bool operator()(DIERef ref) const;
101 void ReportInvalidDIERef(DIERef ref, llvm::StringRef name) const;
H A DSymbolFileDWARF.h264 virtual DWARFDIE GetDIE(const DIERef &die_ref);
272 lldb::user_id_t GetUID(const std::optional<DIERef> &ref) { in GetUID()
276 lldb::user_id_t GetUID(DIERef ref);
358 typedef llvm::DenseMap<lldb::opaque_compiler_type_t, DIERef> ClangTypeToDIE;
404 lldb_private::Type *ResolveTypeUID(const DIERef &die_ref);
427 llvm::ArrayRef<DIERef> variable_dies,
467 FindBlockContainingSpecification(const DIERef &func_die_ref,
526 DIERef ref;
562 typedef std::set<DIERef> DIERefSet;
H A DDWARFUnit.h79 extract(const lldb_private::DWARFDataExtractor &data, DIERef::Section section,
92 DIERef::Section section, lldb::offset_t *offset_ptr);
222 DIERef::Section GetDebugSection() const { return m_section; } in GetDebugSection()
293 DIERef::Section section, bool is_dwo);
364 const DIERef::Section m_section;
H A DDWARFBaseDIE.h18 class DIERef; variable
59 std::optional<DIERef> GetDIERef() const;
H A DDWARFBaseDIE.cpp22 std::optional<DIERef> DWARFBaseDIE::GetDIERef() const { in GetDIERef()
26 return DIERef(m_cu->GetSymbolFileDWARF().GetDwoNum(), m_cu->GetDebugSection(), in GetDIERef()
H A DSymbolFileDWARFDwo.cpp44 DebugInfo().GetUnitAtOffset(DIERef::Section::DebugInfo, in GetDWOCompileUnitForHash()
139 SymbolFileDWARFDwo::GetDIE(const DIERef &die_ref) { in GetDIE()
H A DDWARFTypeUnit.h31 DIERef::Section section, bool is_dwo) in DWARFTypeUnit()
H A DDWARFCompileUnit.h31 DIERef::Section section, bool is_dwo) in DWARFCompileUnit()
H A DAppleDWARFIndex.cpp157 [&](DIERef ref) { return false; })) in GetTypes()
187 m_apple_names_up->FindByName(name.GetStringRef(), [&](DIERef die_ref) { in GetFunctions()
H A DCMakeLists.txt12 DIERef.cpp
H A DSymbolFileDWARFDwo.h42 GetDIE(const DIERef &die_ref) override;
H A DDWARFUnit.cpp36 DIERef::Section section, bool is_dwo) in DWARFUnit()
879 DIERef::Section section, in extract()
897 section == DIERef::Section::DebugTypes ? DW_UT_type : DW_UT_compile; in extract()
966 DIERef::Section section, lldb::offset_t *offset_ptr) { in extract()
1001 return m_section == DIERef::Section::DebugTypes in GetData()
H A DDebugNamesDWARFIndex.h81 std::optional<DIERef> ToDIERef(const DebugNames::Entry &entry);
/openbsd-src/gnu/usr.bin/clang/liblldbPluginSymbolFile/
H A DMakefile15 DIERef.cpp \
/openbsd-src/gnu/llvm/llvm/utils/gn/secondary/lldb/source/Plugins/SymbolFile/DWARF/
H A DBUILD.gn44 "DIERef.cpp",

12