[PATCH] D108261: [DebugInfo] Fix end_sequence of debug_line in LTO Object

Kyungwoo Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 14 12:50:24 PST 2021


kyulee updated this revision to Diff 387127.
kyulee added a comment.

- Add an assembly test to cover the MC path that still emits the end entry using the section end symbol.
- Add a check for `addEndEntry` before adding an end entry. The MCStreamer path may not populate the line entry.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108261/new/

https://reviews.llvm.org/D108261

Files:
  llvm/include/llvm/MC/MCDwarf.h
  llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
  llvm/lib/MC/MCDwarf.cpp
  llvm/test/DebugInfo/XCOFF/empty.ll
  llvm/test/DebugInfo/XCOFF/explicit-section.ll
  llvm/test/DebugInfo/XCOFF/function-sections.ll
  llvm/test/DebugInfo/debugline-endsequence.ll
  llvm/test/DebugInfo/debugline-endsequence.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108261.387127.patch
Type: text/x-patch
Size: 15296 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211114/5925e40f/attachment.bin>


More information about the llvm-commits mailing list