diff options
author | Devang Patel <dpatel@apple.com> | 2010-12-03 00:10:48 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-12-03 00:10:48 +0000 |
commit | 5113cdbfff7df4c7a79a92e5aa971126254202c6 (patch) | |
tree | bb4a12f7f5324158308fbb6b3db9b7636ad2a2aa /lib/MC/MCAsmStreamer.cpp | |
parent | 3fda44f276647bc43c283268907bac605a8f7eb5 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmStreamer.cpp')
-rw-r--r-- | lib/MC/MCAsmStreamer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index 30a3105bd7..49bcc936f7 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/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()); } } |