Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/lldb/unittests/SymbolFile/DWARF/
H A DDWARFIndexCachingTest.cpp44 EncodeDecode(DIERef(100, DIERef::Section::DebugInfo, 0x11223344)); in TEST()
45 EncodeDecode(DIERef(200, DIERef::Section::DebugTypes, 0x11223344)); in TEST()
85 DIERef(100, DIERef::Section::DebugInfo, 0x11223344)); in TEST()
120 DIERef(llvm::None, DIERef::Section::DebugInfo, ++die_offset)); in TEST()
127 DIERef(llvm::None, DIERef::Section::DebugInfo, ++die_offset)); in TEST()
134 DIERef(llvm::None, DIERef::Section::DebugInfo, ++die_offset)); in TEST()
141 DIERef(llvm::None, DIERef::Section::DebugInfo, ++die_offset)); in TEST()
148 DIERef(llvm::None, DIERef::Section::DebugInfo, ++die_offset)); in TEST()
155 DIERef(llvm::None, DIERef::Section::DebugInfo, ++die_offset)); in TEST()
162 DIERef(llvm::None, DIERef::Section::DebugInfo, ++die_offset)); in TEST()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/
H A DDIERef.h26 class DIERef {
30 DIERef(llvm::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 llvm::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.cpp17 void llvm::format_provider<DIERef>::format(const DIERef &ref, raw_ostream &OS, in format()
21 OS << (ref.section() == DIERef::DebugInfo ? "INFO" : "TYPE"); in format()
29 llvm::Optional<DIERef> DIERef::Decode(const DataExtractor &data, in Decode()
41 return DIERef(dwo_num, section, die_offset); in Decode()
43 return DIERef(llvm::None, section, die_offset); in Decode()
46 void DIERef::Encode(DataEncoder &encoder) const { in Encode()
H A DHashedNameToDIE.h67 explicit operator DIERef() const { in DIERef() function
68 return DIERef(llvm::None, 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.cpp24 m_map.Sort(std::less<DIERef>()); in Finalize()
28 void NameToDIE::Insert(ConstString name, const DIERef &die_ref) { in Insert()
33 llvm::function_ref<bool(DIERef ref)> callback) const { in Find()
41 llvm::function_ref<bool(DIERef ref)> callback) const { in Find()
51 DWARFUnit &s_unit, llvm::function_ref<bool(DIERef ref)> callback) const { in FindAllEntriesForUnit()
56 const DIERef &die_ref = m_map.GetValueAtIndexUnchecked(i); in FindAllEntriesForUnit()
76 std::function<bool(ConstString name, const DIERef &die_ref)> const in ForEach()
109 if (llvm::Optional<DIERef> die_ref = DIERef::Decode(data, offset_ptr)) in Decode()
123 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.cpp70 void DWARFDebugInfo::ParseUnitsFor(DIERef::Section section) { in ParseUnitsFor()
71 DWARFDataExtractor data = section == DIERef::Section::DebugTypes in ParseUnitsFor()
99 ParseUnitsFor(DIERef::Section::DebugInfo); in ParseUnitHeadersIfNeeded()
100 ParseUnitsFor(DIERef::Section::DebugTypes); in ParseUnitHeadersIfNeeded()
117 uint32_t DWARFDebugInfo::FindUnitIndex(DIERef::Section section, in FindUnitIndex()
125 [](const std::pair<DIERef::Section, dw_offset_t> &lhs, in FindUnitIndex()
135 DWARFUnit *DWARFDebugInfo::GetUnitAtOffset(DIERef::Section section, in GetUnitAtOffset()
149 DWARFUnit *DWARFDebugInfo::GetUnit(const DIERef &die_ref) { in GetUnit()
154 DWARFDebugInfo::GetUnitContainingDIEOffset(DIERef::Section section, in GetUnitContainingDIEOffset()
180 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()
104 if (!callback(DIERef(die_info_array[i]))) in ExtractTypesFromDIEArray()
[all …]
H A DDebugNamesDWARFIndex.cpp44 llvm::Optional<DIERef>
50 DWARFUnit *cu = m_debug_info.GetUnitAtOffset(DIERef::Section::DebugInfo, *cu_offset); in ToDIERef()
56 return DIERef(cu->GetSymbolFileDWARF().GetDwoNum(), in ToDIERef()
57 DIERef::Section::DebugInfo, cu->GetOffset() + *die_offset); in ToDIERef()
65 llvm::Optional<DIERef> ref = ToDIERef(entry); in ProcessEntry()
168 llvm::Optional<DIERef> ref = ToDIERef(entry); in GetCompleteObjCClass()
193 for (DIERef ref : incomplete_types) in GetCompleteObjCClass()
252 if (llvm::Optional<DIERef> ref = ToDIERef(entry)) { in GetFunctions()
H A DDWARFIndex.cpp22 llvm::StringRef name, DIERef ref, SymbolFileDWARF &dwarf, in ProcessFunctionDIE()
75 bool DWARFIndex::DIERefCallbackImpl::operator()(DIERef ref) const { in operator ()()
82 void DWARFIndex::ReportInvalidDIERef(DIERef ref, llvm::StringRef name) const { in ReportInvalidDIERef()
H A DDWARFIndex.h77 bool ProcessFunctionDIE(llvm::StringRef name, DIERef ref,
88 bool operator()(DIERef ref) const;
102 void ReportInvalidDIERef(DIERef ref, llvm::StringRef name) const;
H A DSymbolFileDWARF.h261 virtual DWARFDIE GetDIE(const DIERef &die_ref);
269 lldb::user_id_t GetUID(const llvm::Optional<DIERef> &ref) { in GetUID()
273 lldb::user_id_t GetUID(DIERef ref);
340 typedef llvm::DenseMap<lldb::opaque_compiler_type_t, DIERef> ClangTypeToDIE;
386 lldb_private::Type *ResolveTypeUID(const DIERef &die_ref);
409 llvm::ArrayRef<DIERef> variable_dies,
449 FindBlockContainingSpecification(const DIERef &func_die_ref,
508 DIERef ref;
544 typedef std::set<DIERef> DIERefSet;
H A DDWARFUnit.h78 extract(const lldb_private::DWARFDataExtractor &data, DIERef::Section section,
91 DIERef::Section section, lldb::offset_t *offset_ptr);
221 DIERef::Section GetDebugSection() const { return m_section; } in GetDebugSection()
264 DIERef::Section section, bool is_dwo);
335 const DIERef::Section m_section;
H A DDWARFBaseDIE.cpp21 llvm::Optional<DIERef> DWARFBaseDIE::GetDIERef() const { in GetDIERef()
25 return DIERef(m_cu->GetSymbolFileDWARF().GetDwoNum(), m_cu->GetDebugSection(), in GetDIERef()
H A DDWARFBaseDIE.h17 class DIERef; variable
58 llvm::Optional<DIERef> GetDIERef() const;
H A DSymbolFileDWARFDwo.cpp43 DebugInfo().GetUnitAtOffset(DIERef::Section::DebugInfo, in GetDWOCompileUnitForHash()
126 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()
186 m_apple_names_up->FindByName(name.GetStringRef(), [&](DIERef die_ref) { in GetFunctions()
H A DSymbolFileDWARFDwo.h41 GetDIE(const DIERef &die_ref) override;
H A DCMakeLists.txt12 DIERef.cpp
H A DDWARFUnit.cpp35 DIERef::Section section, bool is_dwo) in DWARFUnit()
858 DIERef::Section section, in extract()
876 section == DIERef::Section::DebugTypes ? DW_UT_type : DW_UT_compile; in extract()
945 DIERef::Section section, lldb::offset_t *offset_ptr) { in extract()
980 return m_section == DIERef::Section::DebugTypes in GetData()
H A DDebugNamesDWARFIndex.h80 llvm::Optional<DIERef> ToDIERef(const DebugNames::Entry &entry);
/llvm-project-15.0.7/llvm/utils/gn/secondary/lldb/source/Plugins/SymbolFile/DWARF/
H A DBUILD.gn44 "DIERef.cpp",

12