[PATCH] D58750: [DWARF] Make -g with empty assembler source work better.

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 27 17:23:55 PST 2019


probinson created this revision.
probinson added a reviewer: dblaikie.
probinson added a project: debug-info.
Herald added subscribers: jdoerfert, MaskRay, hiraditya, arichardson, aprantl, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

This was sometimes causing clang or llvm-mc to crash, and in other
cases could emit a bogus DWARF line-table header. This should be a
cleaner and more complete fix than r352541.

Addresses PR4538.


https://reviews.llvm.org/D58750

Files:
  clang/test/Misc/cc1as-asm-debug.s
  clang/tools/driver/cc1as_main.cpp
  llvm/include/llvm/MC/MCContext.h
  llvm/include/llvm/MC/MCDwarf.h
  llvm/lib/MC/MCContext.cpp
  llvm/lib/MC/MCDwarf.cpp
  llvm/lib/MC/MCParser/AsmParser.cpp
  llvm/test/MC/ELF/debug-prefix-map.s
  llvm/tools/llvm-mc/llvm-mc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58750.188652.patch
Type: text/x-patch
Size: 9256 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190228/a4ce82a8/attachment.bin>


More information about the llvm-commits mailing list