This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump] Add constant value opcodes to variable display
Needs ReviewPublic

Authored by ostannard on Mar 16 2020, 5:04 AM.

Details

Summary

Add the DW_OP_const* and DW_OP_lit* classes of DWARF expression opcodes, to display variables which have a constant value.

Diff Detail

Unit TestsFailed

Event Timeline

ostannard created this revision.Mar 16 2020, 5:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2020, 5:04 AM
jhenderson added inline comments.Mar 17 2020, 2:42 AM
llvm/unittests/DebugInfo/DWARF/DWARFExpressionCompactPrinterTest.cpp
161–162

I'd recommend adding a 0 case too.

167–168

Please add 0, max single-byte signed and min single-byte signed (i.e. -127 or whatever the value is) too.

183–189

You should have the maximum value also tested for all of these. -1/0/1 cases probably make sense too, but up to you.

193–194

You should probably have a test case for each DW_OP_lit value.