[PATCH] D48135: [DWARFv5] Tolerate files not all having an MD5 checksum.

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 13 09:53:43 PDT 2018


probinson created this revision.
probinson added reviewers: dblaikie, aprantl.
probinson added a project: debug-info.
Herald added subscribers: llvm-commits, JDevlieghere, hiraditya, arichardson, emaste.
Herald added a reviewer: espindola.

In some cases, for example when compiling a preprocessed file, the
front-end is not able to provide an MD5 checksum for all files. When
that happens, omit the MD5 checksums from the final DWARF, because
DWARF doesn't have a way to indicate that some but not all files have
a checksum.

When assembling a .s file, and some but not all .file directives
provide an MD5 checksum, issue a warning and don't emit MD5 into the
DWARF.

Fixes PR37623.


Repository:
  rL LLVM

https://reviews.llvm.org/D48135

Files:
  llvm/include/llvm/MC/MCContext.h
  llvm/include/llvm/MC/MCDwarf.h
  llvm/lib/MC/MCAsmStreamer.cpp
  llvm/lib/MC/MCDwarf.cpp
  llvm/lib/MC/MCParser/AsmParser.cpp
  llvm/test/CodeGen/Generic/dwarf-md5.ll
  llvm/test/CodeGen/Generic/dwarf-source.ll
  llvm/test/MC/ELF/debug-md5-err.s
  llvm/test/MC/ELF/debug-mixed-md5.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48135.151189.patch
Type: text/x-patch
Size: 13369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180613/c495515a/attachment.bin>


More information about the llvm-commits mailing list