================
@@ -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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to