[Lldb-commits] [lldb] [lldb/DWARF] s/DWARFRangeList/llvm::DWARFAddressRangeVector (PR #116620)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 19 22:50:55 PST 2024
================
@@ -906,13 +907,18 @@ Function *SymbolFileDWARF::ParseFunction(CompileUnit &comp_unit,
AddressRanges ranges;
ModuleSP module_sp(die.GetModule());
- for (const auto &range : die.GetDIE()->GetAttributeAddressRanges(
- die.GetCU(), /*check_hi_lo_pc=*/true)) {
- if (range.base < m_first_code_address)
- continue;
- if (Address base_addr(range.base, module_sp->GetSectionList());
- base_addr.IsValid() && FixupAddress(base_addr))
- ranges.emplace_back(std::move(base_addr), range.size);
+ if (llvm::Expected<llvm::DWARFAddressRangesVector> die_ranges =
+ die.GetDIE()->GetAttributeAddressRanges(die.GetCU(),
+ /*check_hi_lo_pc=*/true)) {
+ for (auto &range : *die_ranges) {
----------------
labath wrote:
sure
https://github.com/llvm/llvm-project/pull/116620
More information about the lldb-commits
mailing list