diff options
author | David Blaikie <dblaikie@gmail.com> | 2023-03-22 21:26:03 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2023-03-28 20:47:20 +0000 |
commit | 22afe19ac03f5b5db642cbb8ba7022c2ffc09710 (patch) | |
tree | 6ae65de1345346fc45c2c1f825a2d4f070a91b92 /clang/lib/Lex/ModuleMap.cpp | |
parent | 4d4c0f9734607bb0423593b060b8fa73c06fe3d3 (diff) | |
download | llvm-22afe19ac03f5b5db642cbb8ba7022c2ffc09710.zip llvm-22afe19ac03f5b5db642cbb8ba7022c2ffc09710.tar.gz llvm-22afe19ac03f5b5db642cbb8ba7022c2ffc09710.tar.bz2 |
DebugInfo: Rebuild dwp debug_info index column from v5 indexes more robustly
the v4 rebuilding is a best-effort because it's not possible to reliably
parse the DWO ID as it requires the abbrev section (& if the index isn't
trustworthy then there's no way to find the associated abbrev section
contribution for a given info section contribution)
But in v5 the DWO ID/type signature is in the header and can be rebuilt
losslessly (only at the cost of performance of rescanning/parsing the
headers of all the units), so let's implement that.
the testing isn't /ideal/ - I think the testing should've been
implemented as a hardcoded dwp file with a corrupted/incorrect index,
then the test could've demonstrated that reparsing the index produces
the right answer - but this is a quick port of the existing v5 test back
to v4 so that we don't lose coverage on the v4 codepath now that it's
separated from the v5 codepath.
Differential Revision: https://reviews.llvm.org/D146662
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions