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 188960 cfe/trunk/test/Misc/cc1as-asm-debug.s
cfe/trunk/tools/driver/cc1as_main.cpp
llvm/trunk/include/llvm/MC/MCContext.h
llvm/trunk/include/llvm/MC/MCDwarf.h
llvm/trunk/lib/MC/MCContext.cpp
llvm/trunk/lib/MC/MCDwarf.cpp
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
llvm/trunk/test/MC/ELF/debug-prefix-map.s
llvm/trunk/tools/llvm-mc/llvm-mc.cpp
|