From 5eed2e63f829c9aa437aca7ee014df17711205e3 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 3 Dec 2010 00:10:48 +0000 Subject: It may not be an option to skip .debug_line if there are file reference in already emitted debug info. So, for now, emit dummy line table entry to make older linker and assemblers happy. This is not a new behavior, original AsmPrinter emitted similar line table entries. llvm-svn: 120760 --- llvm/lib/MC/MCAsmStreamer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/MC/MCAsmStreamer.cpp') diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp index 30a3105bd79..49bcc936f7a 100644 --- a/llvm/lib/MC/MCAsmStreamer.cpp +++ b/llvm/lib/MC/MCAsmStreamer.cpp @@ -885,9 +885,9 @@ void MCAsmStreamer::EmitRawText(StringRef String) { void MCAsmStreamer::Finish() { // Dump out the dwarf file & directory tables and line tables. - if (getContext().hasDwarfFiles() && getContext().hasDwarfLines() && TLOF) { + if (getContext().hasDwarfFiles() && TLOF) { MCDwarfFileTable::Emit(this, TLOF->getDwarfLineSection(), NULL, - PointerSize); + PointerSize, TLOF->getTextSection()); } } -- cgit v1.2.3