OSDN Git Service

Revert "Reapply "[DWARFv5] Emit file 0 to the line table.""
authorAlexander Kornienko <alexfh@google.com>
Wed, 7 Mar 2018 16:27:44 +0000 (16:27 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 7 Mar 2018 16:27:44 +0000 (16:27 +0000)
commitb0846f97d65881189c43872d24b465f4b1308f71
treece24b90c2ded3e1448b8e3241d3300538c8893ab
parent85acf6acb2717e61a4ba1f6ab32f79d8be9fff17
Revert "Reapply "[DWARFv5] Emit file 0 to the line table.""

This reverts commit r326839.

r326839 breaks assembly file parsing:

$ cat q.c
void g() {}
$ clang -S q.c -g
$ clang -g -c q.s
q.s:9:2: error: file number already allocated
     .file   1 "/tmp/test" "q.c"
     ^

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326902 91177308-0d34-0410-b5e6-96231b3b80d8
20 files changed:
include/llvm/MC/MCContext.h
include/llvm/MC/MCDwarf.h
include/llvm/MC/MCStreamer.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.h
lib/MC/MCAsmStreamer.cpp
lib/MC/MCDwarf.cpp
lib/MC/MCParser/AsmParser.cpp
lib/MC/MCStreamer.cpp
test/CodeGen/Generic/dwarf-md5.ll
test/CodeGen/Generic/dwarf-source.ll
test/DebugInfo/X86/dbg-file-name.ll
test/DebugInfo/X86/inline-asm-locs.ll
test/MC/ARM/dwarf-asm-multiple-sections.s
test/MC/ELF/debug-file-options.s
test/MC/ELF/debug-md5.s
test/MC/ELF/debug-source.s
test/MC/ELF/dwarf-file0.s [deleted file]
tools/llvm-mc/llvm-mc.cpp