[PATCH] D81476: [DWARF5] Enable .debug_line.dwo section emission if macro info is present

Sourabh Singh Tomar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 09:19:39 PDT 2020


SouraVX created this revision.
SouraVX added reviewers: probinson, dblaikie, aprantl.
Herald added subscribers: llvm-commits, sstefan1, hiraditya.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.
SouraVX added a reviewer: jini.susan.george.
SouraVX added a project: debug-info.
SouraVX added a subscriber: alok.

Previously the .debug_line.dwo section was only emitted only if type
units are present. This patch further extends emission for the case if
.debug_macro.dwo section is present.

For enabling this, I've refactored out `SplitLineTable` from
`DwarfTypeUnit` to `DwarfUnit` so that it can be emitted for when
type units are not present. Emission is further restricted to only
when `.debug_macro.dwo` section is present.

Ideally, this should've splitted into more than one patches, but
that can be done post review. This patch is intended to convey the overall
direction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81476

Files:
  llvm/include/llvm/MC/MCDwarf.h
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
  llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
  llvm/test/DebugInfo/X86/debug-line-macro-dwo.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81476.269566.patch
Type: text/x-patch
Size: 8572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200609/6d7cfd06/attachment.bin>


More information about the llvm-commits mailing list