[PATCH] D39854: [DWARFv5] Support FORM_strp in .debug_line.dwo

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 13:46:01 PST 2017


dblaikie added inline comments.


================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFContext.cpp:344-348
+      auto It = LineToUnit.find(Offset);
+      if (It != LineToUnit.end()) {
+        U = It->second;
+        LineData.setAddressSize(U->getAddressByteSize());
+      }
----------------
probinson wrote:
> dblaikie wrote:
> > Would it make sense to sink this down into the LineTable parsing logic, so that the unit isn't looked up when it's not needed? (when using more recent line table formats that have a standalone description (if I'm understanding the DWARF5 line table support correctly))
> We need to look up the unit anyway.  The unit is how the LineTable parsing finds the string section, and .debug_str_offsets (for FORM_strx).  And the .debug_addr section, once I get to that.  We could defer setting the data extractor's address size until we're down into LineTable, but we can't defer looking up the unit.
Hmm, then I'm confused - I had thought one of the goals of the new line table work was to make it standalone/parsable without the debug_info? Any idea if that has been a goal? Or just something I totally misunderstood?


https://reviews.llvm.org/D39854





More information about the llvm-commits mailing list