This is an archive of the discontinued LLVM Phabricator instance.

[DWARF] Fix dump of local/foreign TU lists in .debug_names
ClosedPublic

Authored by MaskRay on Apr 28 2019, 8:07 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

MaskRay created this revision.Apr 28 2019, 8:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 28 2019, 8:07 AM
MaskRay updated this revision to Diff 197031.Apr 28 2019, 8:10 AM

Fix a comment in the test

MaskRay marked 2 inline comments as done.Apr 28 2019, 8:14 AM
MaskRay added inline comments.
test/tools/llvm-dwarfdump/X86/debug-names-many-tu.s
75 ↗(On Diff #197031)

Question: should I add an end-of-mark (.byte 0) here?

88 ↗(On Diff #197031)

Question: is the end-of-mark (.byte 0) necessary?

labath accepted this revision.Apr 29 2019, 1:31 AM

Looks good to me. Thanks for fixing this.

test/tools/llvm-dwarfdump/X86/debug-names-many-tu.s
75 ↗(On Diff #197031)

I believe it is not necessary, as your abbreviation for the compile unit DIE says DW_CHILDREN_no. The same goes for the other question.

This revision is now accepted and ready to land.Apr 29 2019, 1:31 AM
MaskRay updated this revision to Diff 197064.Apr 29 2019, 1:41 AM

Delete redundant end-of-mark .byte 0

MaskRay updated this revision to Diff 197066.Apr 29 2019, 1:51 AM

.long 0 // DW_IDE_die_offset

>

.long .Ltu_die0-.Lcu_begin0 // DW_IDX_die_offset

to make the example more plausible

This revision was automatically updated to reflect the committed changes.