[PATCH] D49214: [DWARF v5] emit DWARF v5 range lists (no support for fission yet)

Wolfgang Pieb via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 11 18:38:50 PDT 2018


wolfgangp created this revision.
wolfgangp added reviewers: aprantl, JDevlieghere, dblaikie.

This is a first cut at generating DWARF v5 range lists into the .debug_rnglists section. We are generating the range lists table specified by the standard, using the range list entry kinds DW_RLE_offset_pair and DW_RLE_start_length.

We do not support split DWARF yet, because as far as I can tell it requires support for .debug_addr to be able to refer back to locations in the executable. 
Also, we don't yet use DW_FORM_rnglistx, so there is no offset table yet.

One of the modified test cases is fission-ranges.ll, which is a bit misleading as we don't support fission yet, but it already had a nice usable module, which avoids duplication.


https://reviews.llvm.org/D49214

Files:
  include/llvm/MC/MCObjectFileInfo.h
  lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.h
  lib/CodeGen/AsmPrinter/DwarfFile.h
  lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  lib/CodeGen/AsmPrinter/DwarfUnit.h
  lib/MC/MCObjectFileInfo.cpp
  test/DebugInfo/X86/fission-ranges.ll
  test/DebugInfo/X86/rnglists-nobase.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49214.155100.patch
Type: text/x-patch
Size: 21909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180712/9a2c1913/attachment.bin>


More information about the llvm-commits mailing list