This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Fix emitting DWARF64 .debug_rnglists sections (13/19).
ClosedPublic

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

Details

Summary

The size of the offsets in the table depends on the 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
ikudrin retitled this revision from [DebugInfo] Fix emitting DWARF64 .debug_rnglists sections (12/19). to [DebugInfo] Fix emitting DWARF64 .debug_rnglists sections (13/19)..Sep 3 2020, 7:51 AM
dblaikie accepted this revision.Sep 3 2020, 12:23 PM

Looks good, except possible test tidyup.

llvm/test/DebugInfo/X86/split-dwarf-v5-ranges.ll
24–31

Could you use https://llvm.org/docs/CommandGuide/FileCheck.html#filecheck-numeric-substitution-blocks to make these offsets relative to the offset in the offsets list, so they don't have to be duplicated for DWARF32/DWARF64?

This revision is now accepted and ready to land.Sep 3 2020, 12:23 PM
ikudrin updated this revision to Diff 289872.Sep 4 2020, 12:03 AM
ikudrin marked an inline comment as done.
  • Updated the test as suggested. Thanks!