This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Handle generic type DW_OP_convert ops in llvm-dwarfdump
ClosedPublic

Authored by dstenb on Mar 13 2020, 9:43 AM.

Details

Summary

This is a preparatory change for introducing a new operation that'll let
us emit DW_OP_convert operations converting to the generic type.

If DW_OP_convert's operand is 0, it converts the top of stack to the
generic type, as specified by DWARFv5 section 2.5.1.6:

"[...] takes one operand, which is an unsigned LEB128 integer that
represents the offset of a debugging information entry in the current
compilation unit, or value 0 which represents the generic type."

This adds support for such operations to llvm-dwarfdump.

Diff Detail

Event Timeline

dstenb created this revision.Mar 13 2020, 9:43 AM
Herald added a project: Restricted Project. · View Herald Transcript
aprantl accepted this revision.Mar 13 2020, 10:40 AM
This revision is now accepted and ready to land.Mar 13 2020, 10:40 AM
This revision was automatically updated to reflect the committed changes.