[DWARFv5] Emit file 0 to the line table.
authorPaul Robinson <paul.robinson@sony.com>
Tue, 6 Mar 2018 01:59:56 +0000 (01:59 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Tue, 6 Mar 2018 01:59:56 +0000 (01:59 +0000)
commitd5069ba3da031774ad6b751f0f72c65e7dda9b04
treeefa6dae9e93355da9e17edf2ba279c6ae71bdbf9
parentb8b9af2ad46ff1ed901956c155c48c15cb585fa9
[DWARFv5] Emit file 0 to the line table.

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.

Differential Revision: https://reviews.llvm.org/D44054

llvm-svn: 326758
20 files changed:
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 [new file with mode: 0644]
llvm/tools/llvm-mc/llvm-mc.cpp