[PATCH] D75375: [MCDwarf] Generate DWARF v5 .debug_rnglists for assembly files

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 28 11:30:58 PST 2020


MaskRay created this revision.
MaskRay added reviewers: dblaikie, echristo, ostannard, probinson.
Herald added subscribers: llvm-commits, hiraditya, aprantl.
Herald added a project: LLVM.

  // clang -c -gdwarf-5 a.s -o a.o
  .section .init; ret
  .text; ret

.debug_info contains DW_AT_ranges and llvm-dwarfdump will report
a verification error because .debug_rnglists does not exist.

This patch generates .debug_rnglists for assembly files.
emitListsTableHeaderStart() in DwarfDebug.cpp can be shared with
MCDwarf.cpp. Because CodeGen depends on MC, I move the function to
MCDwarf.cpp


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75375

Files:
  llvm/include/llvm/MC/MCDwarf.h
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/lib/MC/MCDwarf.cpp
  llvm/test/MC/ARM/dwarf-asm-multiple-sections.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75375.247325.patch
Type: text/x-patch
Size: 15387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200228/ab3957a1/attachment.bin>


More information about the llvm-commits mailing list