This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump] Add simple memory expressions to variable display
ClosedPublic

Authored by ostannard on Feb 19 2020, 8:40 AM.

Details

Summary

This adds the DW_OP_breg0..DW_OP_breg31 and DW_OP_bregx opcodes to the DWARF expression printer, so we can display locations for source variables which are in memory.

Diff Detail

Event Timeline

ostannard created this revision.Feb 19 2020, 8:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 19 2020, 8:40 AM
aprantl added inline comments.Feb 19 2020, 1:38 PM
llvm/test/tools/llvm-objdump/ARM/debug-vars-breg.s
1 ↗(On Diff #245419)

Same comment as applies as in the other review. Could this be tested with a unittest that just dumps a single expression?

ostannard updated this revision to Diff 246929.Feb 27 2020, 6:32 AM

Convert expression printing test to unit tests. Thanks for the suggestion, this is a much neater way to test this.

aprantl accepted this revision.Feb 27 2020, 8:42 AM
This revision is now accepted and ready to land.Feb 27 2020, 8:42 AM
This revision was automatically updated to reflect the committed changes.