Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
Show First 20 Lines • Show All 433 Lines • ▼ Show 20 Lines | bool DWARFDIE::IsMethod() const { | ||||
for (DWARFDIE d : elaborating_dies(*this)) | for (DWARFDIE d : elaborating_dies(*this)) | ||||
if (d.GetParent().IsStructUnionOrClass()) | if (d.GetParent().IsStructUnionOrClass()) | ||||
return true; | return true; | ||||
return false; | return false; | ||||
} | } | ||||
bool DWARFDIE::GetDIENamesAndRanges( | bool DWARFDIE::GetDIENamesAndRanges( | ||||
const char *&name, const char *&mangled, DWARFRangeList &ranges, | const char *&name, const char *&mangled, DWARFRangeList &ranges, | ||||
int &decl_file, int &decl_line, int &decl_column, int &call_file, | std::optional<int> &decl_file, std::optional<int> &decl_line, | ||||
int &call_line, int &call_column, | std::optional<int> &decl_column, std::optional<int> &call_file, | ||||
std::optional<int> &call_line, std::optional<int> &call_column, | |||||
lldb_private::DWARFExpressionList *frame_base) const { | lldb_private::DWARFExpressionList *frame_base) const { | ||||
if (IsValid()) { | if (IsValid()) { | ||||
return m_die->GetDIENamesAndRanges( | return m_die->GetDIENamesAndRanges( | ||||
GetCU(), name, mangled, ranges, decl_file, decl_line, decl_column, | GetCU(), name, mangled, ranges, decl_file, decl_line, decl_column, | ||||
call_file, call_line, call_column, frame_base); | call_file, call_line, call_column, frame_base); | ||||
} else | } else | ||||
return false; | return false; | ||||
} | } | ||||
llvm::iterator_range<DWARFDIE::child_iterator> DWARFDIE::children() const { | llvm::iterator_range<DWARFDIE::child_iterator> DWARFDIE::children() const { | ||||
return llvm::make_range(child_iterator(*this), child_iterator()); | return llvm::make_range(child_iterator(*this), child_iterator()); | ||||
} | } |