This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Handle missed DW_FORM_addrx3 and DW_FORM_strx3 cases
ClosedPublic

Authored by benmxwl-arm on Feb 7 2023, 4:41 AM.

Details

Summary

This fixes a few places where the addrx3 and strx3 forms were missed.
Previously this meant if one of these forms appeared somewhere various
errors could occur. This now also adds an extra test case for the addrx3
form (which previously failed).

Diff Detail

Event Timeline

benmxwl-arm created this revision.Feb 7 2023, 4:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 7 2023, 4:41 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
benmxwl-arm requested review of this revision.Feb 7 2023, 4:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 7 2023, 4:41 AM
keith.walker.arm accepted this revision.Feb 9 2023, 6:01 AM

This LGTM.

As this is a very simple change covering an obvious omission and has associated tests, and there has beee a few days for any suggestions for improvment to be raised I'm setting "Accept Revision".

This revision is now accepted and ready to land.Feb 9 2023, 6:01 AM
dblaikie accepted this revision.Feb 9 2023, 11:18 AM

Looks good except for the unrelated change in DwarfGenerator.

llvm/unittests/DebugInfo/DWARF/DwarfGenerator.h
270

Looks unrelated to the rest of this patch - could you revert this before submitting?

benmxwl-arm marked an inline comment as done.Feb 10 2023, 6:48 AM

Pushed (without the accidental change 👍)