[PATCH] D48055: [DWARFv5] llvm-mc -dwarf-version does not imply -g.

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 11 15:01:37 PDT 2018


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

Don't provide the assembler source as the "root file" unless the user
asked to have debug info for the assembler source (with -g).

If the source doesn't provide an explicit ".file 0" then (a) use the
compilation directory as directory #0, and (b) use the file #1 info
for file #0 also.


Repository:
  rL LLVM

https://reviews.llvm.org/D48055

Files:
  llvm/include/llvm/MC/MCDwarf.h
  llvm/lib/MC/MCDwarf.cpp
  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: D48055.150855.patch
Type: text/x-patch
Size: 8569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180611/0de86270/attachment.bin>


More information about the llvm-commits mailing list