This is an archive of the discontinued LLVM Phabricator instance.

[llvm-dwp] Adding support for v5 index writing
ClosedPublic

Authored by kimanh on May 12 2021, 12:42 AM.

Details

Summary

This patch adds general support for DWARFv5 index writing.
In particular, this means only allowing inputs with one version,
either DWARFv5 or DWARFv4.

This patch adds the .debug_macro section as an example,
but the DWARFv5 type support and loc and rangelists are still
missing (and upcoming).

Diff Detail

Event Timeline

kimanh created this revision.May 12 2021, 12:42 AM
kimanh published this revision for review.May 12 2021, 4:24 AM
kimanh added a reviewer: dblaikie.
kimanh added a subscriber: pfaffe.

Hello Dave,

this is the second CL (out of 3): adding support for writing v5 index with the example of .debug_macro, ptal!

Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2021, 4:25 AM
dblaikie accepted this revision.May 21 2021, 8:02 PM

Looks OK - though honestly lots of this code (that I wrote) could use a bunch of refactoring, comments, smaller/more self-documenting functions, etc.

llvm/tools/llvm-dwp/llvm-dwp.cpp
704–705

A comment describing what this does would be handy

This revision is now accepted and ready to land.May 21 2021, 8:02 PM
kimanh updated this revision to Diff 349215.Jun 2 2021, 3:14 AM
kimanh marked an inline comment as done.

Rebase to trigger premerge bots.

kimanh updated this revision to Diff 349218.Jun 2 2021, 3:28 AM

Add missing comment for addressing review.

This revision was automatically updated to reflect the committed changes.