[PATCH] D44054: [DWARFv5] Emit file 0 to the line table.

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 2 16:28:30 PST 2018


probinson created this revision.
probinson added reviewers: dblaikie, aprantl.
probinson added a project: debug-info.
Herald added subscribers: JDevlieghere, hiraditya, kristof.beyls, eraman, arichardson, javed.absar, emaste.

DWARF v5 specifies that the root file (also given in the DW_AT_name attribute
of the compilation unit DIE) should be emitted explicitly to the line  table's list of files.
This makes the line table more independent of the .debug_info section.

I am a bit nonplussed that more directory names are appearing in the .file directives now, which required more test changes than I expected, but I can't see that being harmful.


https://reviews.llvm.org/D44054

Files:
  llvm/include/llvm/MC/MCContext.h
  llvm/include/llvm/MC/MCDwarf.h
  llvm/include/llvm/MC/MCStreamer.h
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
  llvm/lib/MC/MCAsmStreamer.cpp
  llvm/lib/MC/MCDwarf.cpp
  llvm/lib/MC/MCParser/AsmParser.cpp
  llvm/lib/MC/MCStreamer.cpp
  llvm/test/CodeGen/Generic/dwarf-md5.ll
  llvm/test/CodeGen/Generic/dwarf-source.ll
  llvm/test/DebugInfo/X86/dbg-file-name.ll
  llvm/test/DebugInfo/X86/inline-asm-locs.ll
  llvm/test/MC/ARM/dwarf-asm-multiple-sections.s
  llvm/test/MC/ELF/debug-file-options.s
  llvm/test/MC/ELF/debug-md5.s
  llvm/test/MC/ELF/debug-source.s
  llvm/test/MC/ELF/dwarf-file0.s
  llvm/tools/llvm-mc/llvm-mc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44054.136879.patch
Type: text/x-patch
Size: 31782 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180303/9dac7853/attachment.bin>


More information about the llvm-commits mailing list