]> granicus.if.org Git - clang/commit
[DWARF] Make -g with empty assembler source work better.
authorPaul Robinson <paul.robinson@sony.com>
Fri, 1 Mar 2019 20:58:04 +0000 (20:58 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Fri, 1 Mar 2019 20:58:04 +0000 (20:58 +0000)
commit8302be4db4e454f45deae6fa8a470db7bc3495d0
tree787fb8f025854877bedb7b00294af373879e71e3
parent2e6e357759019c2f9ee476a9b6f4c307215277c9
[DWARF] Make -g with empty assembler source work better.

This was sometimes causing clang or llvm-mc to crash, and in other
cases could emit a bogus DWARF line-table header. I did an interim
patch in r352541; this patch should be a cleaner and more complete
fix, and retains the test.

Addresses PR40538.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355226 91177308-0d34-0410-b5e6-96231b3b80d8
test/Misc/cc1as-asm-debug.s
tools/driver/cc1as_main.cpp