File tree 6 files changed +13
-6
lines changed
lldb/source/Plugins/SymbolFile/DWARF 6 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ DebugNamesDWARFIndex::GetUnits(const DebugNames &debug_names) {
61
61
}
62
62
63
63
std::optional<DWARFTypeUnit *>
64
- DebugNamesDWARFIndex::IsForeignTypeUnit (const DebugNames::Entry &entry) const {
64
+ DebugNamesDWARFIndex::GetForeignTypeUnit (const DebugNames::Entry &entry) const {
65
65
std::optional<uint64_t > type_sig = entry.getForeignTUTypeSignature ();
66
66
if (!type_sig.has_value ())
67
67
return std::nullopt;
@@ -120,7 +120,7 @@ DebugNamesDWARFIndex::IsForeignTypeUnit(const DebugNames::Entry &entry) const {
120
120
DWARFUnit *
121
121
DebugNamesDWARFIndex::GetNonSkeletonUnit (const DebugNames::Entry &entry) const {
122
122
123
- if (std::optional<DWARFTypeUnit *> foreign_tu = IsForeignTypeUnit (entry))
123
+ if (std::optional<DWARFTypeUnit *> foreign_tu = GetForeignTypeUnit (entry))
124
124
return foreign_tu.value ();
125
125
126
126
// Look for a DWARF unit offset (CU offset or local TU offset) as they are
@@ -349,7 +349,7 @@ void DebugNamesDWARFIndex::GetFullyQualifiedType(
349
349
// If we get a NULL foreign_tu back, the entry doesn't match the type unit
350
350
// in the .dwp file, or we were not able to load the .dwo file or the DWO ID
351
351
// didn't match.
352
- std::optional<DWARFTypeUnit *> foreign_tu = IsForeignTypeUnit (entry);
352
+ std::optional<DWARFTypeUnit *> foreign_tu = GetForeignTypeUnit (entry);
353
353
if (foreign_tu && foreign_tu.value () == nullptr )
354
354
continue ;
355
355
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ class DebugNamesDWARFIndex : public DWARFIndex {
109
109
// / doesn't match the originating skeleton compile unit's entry
110
110
// / Returns std::nullopt if this entry is not a foreign type unit entry.
111
111
std::optional<DWARFTypeUnit *>
112
- IsForeignTypeUnit (const DebugNames::Entry &entry) const ;
112
+ GetForeignTypeUnit (const DebugNames::Entry &entry) const ;
113
113
114
114
bool ProcessEntry (const DebugNames::Entry &entry,
115
115
llvm::function_ref<bool (DWARFDIE die)> callback);
Original file line number Diff line number Diff line change @@ -1748,7 +1748,7 @@ SymbolFileDWARF *SymbolFileDWARF::GetDIERefSymbolFile(const DIERef &die_ref) {
1748
1748
// to let the base symbol file handle this.
1749
1749
SymbolFileDWARFDwo *dwo = llvm::dyn_cast_or_null<SymbolFileDWARFDwo>(this );
1750
1750
if (dwo)
1751
- return dwo->GetBaseSymbolFile (). GetDIERefSymbolFile (die_ref);
1751
+ return dwo->GetDIERefSymbolFile (die_ref);
1752
1752
1753
1753
if (file_index) {
1754
1754
SymbolFileDWARFDebugMap *debug_map = GetDebugMapSymfile ();
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ class SymbolFileDWARF : public SymbolFileCommon {
248
248
// / Calling this function will find the correct symbol file to use so that
249
249
// / further lookups can be done on the correct symbol file so that the DIE
250
250
// / offset makes sense in the DIERef.
251
- SymbolFileDWARF *GetDIERefSymbolFile (const DIERef &die_ref);
251
+ virtual SymbolFileDWARF *GetDIERefSymbolFile (const DIERef &die_ref);
252
252
253
253
virtual DWARFDIE GetDIE (const DIERef &die_ref);
254
254
Original file line number Diff line number Diff line change @@ -174,3 +174,8 @@ bool SymbolFileDWARFDwo::GetDebugInfoHadFrameVariableErrors() const {
174
174
void SymbolFileDWARFDwo::SetDebugInfoHadFrameVariableErrors () {
175
175
return GetBaseSymbolFile ().SetDebugInfoHadFrameVariableErrors ();
176
176
}
177
+
178
+ SymbolFileDWARF *
179
+ SymbolFileDWARFDwo::GetDIERefSymbolFile (const DIERef &die_ref) {
180
+ return GetBaseSymbolFile ().GetDIERefSymbolFile (die_ref);
181
+ }
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ class SymbolFileDWARFDwo : public SymbolFileDWARF {
67
67
bool GetDebugInfoHadFrameVariableErrors () const override ;
68
68
void SetDebugInfoHadFrameVariableErrors () override ;
69
69
70
+ SymbolFileDWARF *GetDIERefSymbolFile (const DIERef &die_ref) override ;
71
+
70
72
protected:
71
73
DIEToTypePtr &GetDIEToType () override ;
72
74
You can’t perform that action at this time.
0 commit comments