This is an archive of the discontinued LLVM Phabricator instance.

[MC] Add --dwarf64 to generate DWARF64 debug info [1/7]
ClosedPublic

Authored by ikudrin on Jun 4 2020, 4:50 AM.

Details

Summary

The patch adds an option --dwarf64 to instruct a tool to generate debug information in the 64-bit DWARF format. There is no real implementation yet, only a few compatibility checks.

Diff Detail

Event Timeline

ikudrin created this revision.Jun 4 2020, 4:50 AM
This revision is now accepted and ready to land.Jun 4 2020, 5:28 AM
MaskRay accepted this revision.Jun 4 2020, 11:10 AM
MaskRay added subscribers: mstorsjo, rnk.

Thanks!

Add a command line option

This subject can be more specific, e.g. Add --dwarf64 to generate DWARF64 debug info

llvm/test/MC/ELF/dwarf64-err.s
1

-filetype=asm is the default. The assumption is used by numerous tests. You can omit -filetype=asm

llvm/tools/llvm-mc/llvm-mc.cpp
408

@rnk @mstorsjo Will this be more appropriate checking for COFF explicitly?

Only llvm/lib/MC/MCAsmInfoCOFF.cpp sets NeedsDwarfSectionOffsetDirective to true.

ikudrin updated this revision to Diff 268804.Jun 5 2020, 8:14 AM
ikudrin marked an inline comment as done.
ikudrin retitled this revision from [MC] Add a command line option to generate DWARF64 debug info [1/7] to [MC] Add --dwarf64 to generate DWARF64 debug info [1/7].
  • Removed -filetype=asm in the test.
This revision was automatically updated to reflect the committed changes.