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 PR40538.
Paths
| Differential D58750
[DWARF] Make -g with empty assembler source work better. ClosedPublic Authored by probinson on Feb 27 2019, 5:23 PM.
Details Summary This was sometimes causing clang or llvm-mc to crash, and in other Addresses PR40538.
Diff Detail Event Timelineprobinson added inline comments.
This revision is now accepted and ready to land.Feb 28 2019, 2:35 PM
Closed by commit rL355226: [DWARF] Make -g with empty assembler source work better. (authored by probinson). · Explain WhyMar 1 2019, 12:59 PM This revision was automatically updated to reflect the committed changes. probinson marked an inline comment as done.
Revision Contents
Diff 188792 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
|
Why not move this to line 411?