From e12a48bcc089b9942fa405076ccabac73fae3e86 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Wed, 7 Mar 2018 16:27:44 +0000 Subject: 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" ^ llvm-svn: 326902 --- llvm/lib/MC/MCStreamer.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'llvm/lib/MC/MCStreamer.cpp') diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index eed061d..bf27a0a 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -199,15 +199,6 @@ MCStreamer::tryEmitDwarfFileDirective(unsigned FileNo, StringRef Directory, Source, CUID); } -void MCStreamer::emitDwarfFile0Directive(StringRef Directory, - StringRef Filename, - MD5::MD5Result *Checksum, - Optional Source, - unsigned CUID) { - getContext().setMCLineTableRootFile(CUID, Directory, Filename, Checksum, - Source); -} - void MCStreamer::EmitDwarfLocDirective(unsigned FileNo, unsigned Line, unsigned Column, unsigned Flags, unsigned Isa, -- cgit v1.1