This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Fix emitting pre-v5 name lookup tables in the DWARF64 format (12/19).
ClosedPublic

Authored by ikudrin on Sep 2 2020, 6:22 AM.

Details

Summary

The transition is done by using methods of AsmPrinter which automatically emit values in compliance with the selected DWARF format.

Diff Detail

Event Timeline

ikudrin created this revision.Sep 2 2020, 6:22 AM
ikudrin requested review of this revision.Sep 2 2020, 6:22 AM
dblaikie accepted this revision.Sep 2 2020, 1:56 PM

Looks good, thanks! (with the test expanded a bit, as mentioned)

llvm/test/DebugInfo/X86/debug-pubtables-dwarf64.ll
7–16

Expand this test to verify that the offsets parsed from debug_pub* match the offsets of the DIEs they are meant to refer to.

This revision is now accepted and ready to land.Sep 2 2020, 1:56 PM
ikudrin updated this revision to Diff 289722.Sep 3 2020, 7:49 AM
ikudrin marked an inline comment as done.
ikudrin retitled this revision from [DebugInfo] Fix emitting pre-v5 name lookup tables in the DWARF64 format (6/19). to [DebugInfo] Fix emitting pre-v5 name lookup tables in the DWARF64 format (12/19)..
  • Extended the test. Note that this change required rearranging the patches in the set so that this patch comes after the patches for DWARF units.