[lld] [llvm] [Symbolizer] Support for Missing Line Numbers. (PR #82240)
    David Blaikie via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue May  7 12:33:16 PDT 2024
    
    
  
================
@@ -1312,23 +1312,25 @@ uint32_t DWARFDebugLine::LineTable::findRowInSeq(
   return RowPos - Rows.begin();
 }
 
-uint32_t DWARFDebugLine::LineTable::lookupAddress(
-    object::SectionedAddress Address) const {
+uint32_t
+DWARFDebugLine::LineTable::lookupAddress(object::SectionedAddress Address,
+                                         bool *IsApproximateLine) const {
 
   // Search for relocatable addresses
-  uint32_t Result = lookupAddressImpl(Address);
+  uint32_t Result = lookupAddressImpl(Address, IsApproximateLine);
 
   if (Result != UnknownRowIndex ||
       Address.SectionIndex == object::SectionedAddress::UndefSection)
     return Result;
 
   // Search for absolute addresses
   Address.SectionIndex = object::SectionedAddress::UndefSection;
-  return lookupAddressImpl(Address);
+  return lookupAddressImpl(Address, IsApproximateLine);
 }
 
-uint32_t DWARFDebugLine::LineTable::lookupAddressImpl(
-    object::SectionedAddress Address) const {
+uint32_t
+DWARFDebugLine::LineTable::lookupAddressImpl(object::SectionedAddress Address,
+                                             bool *IsApproximateLine) const {
----------------
dwblaikie wrote:
Perhaps approximate enablement (rather than the static variable that I commented on above/concerned about) could be done via `IsApproximateLine` being non-null. If the parameter is non-null, approximation is enabled, and the result is written out through it, otherwise approximation is not enabled?
https://github.com/llvm/llvm-project/pull/82240
    
    
More information about the llvm-commits
mailing list