[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 12:57:30 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());
+ }
----------------
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))
https://reviews.llvm.org/D39854
More information about the llvm-commits
mailing list