OSDN Git Service

Revert "Reapply "[DWARFv5] Emit file 0 to the line table.""
authorAlexander Potapenko <glider@google.com>
Wed, 28 Mar 2018 12:36:46 +0000 (12:36 +0000)
committerAlexander Potapenko <glider@google.com>
Wed, 28 Mar 2018 12:36:46 +0000 (12:36 +0000)
commit7323a7bf809cb1e4c16c2752f9615b4fbd523195
tree12392975409213130a1ea9e73316641fa236750e
parented2243b21bc8dfe0d2ca2aa8d836f38facaf3114
Revert "Reapply "[DWARFv5] Emit file 0 to the line table.""

This reverts commit r328676.

Commit r328676 broke the -no-integrated-as flag necessary to build Linux kernel with Clang:

$ cat t.c
void foo() {}
$ clang -no-integrated-as   -c  t.c -g
/tmp/t-dcdec5.s: Assembler messages:
/tmp/t-dcdec5.s:8: Error: file number less than one
clang-7.0: error: assembler command failed with exit code 1 (use -v to see invocation)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328699 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