From 8c087da0281be24f5797d65a7f7b22e55cc4f57e Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 10 Dec 2013 00:26:10 +0000 Subject: [PATCH] We never emit info into the macro info section, stop emitting an empty one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196849 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 12 ------------ lib/CodeGen/AsmPrinter/DwarfDebug.h | 3 --- 2 files changed, 15 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index e099acdc5a6..a036a4d6f28 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1180,9 +1180,6 @@ void DwarfDebug::endModule() { // Emit info into a debug ranges section. emitDebugRanges(); - // Emit info into a debug macinfo section. - emitDebugMacInfo(); - if (useSplitDwarf()) { emitDebugStrDWO(); emitDebugInfoDWO(); @@ -2941,15 +2938,6 @@ void DwarfDebug::emitDebugRanges() { } } -// Emit visible names into a debug macinfo section. -void DwarfDebug::emitDebugMacInfo() { - if (const MCSection *LineInfo = - Asm->getObjFileLowering().getDwarfMacroInfoSection()) { - // Start the dwarf macinfo section. - Asm->OutStreamer.SwitchSection(LineInfo); - } -} - // DWARF5 Experimental Separate Dwarf emitters. // This DIE has the following attributes: DW_AT_comp_dir, DW_AT_stmt_list, diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h index 88a1d4e3700..2eda0e883ee 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -587,9 +587,6 @@ class DwarfDebug : public AsmPrinterHandler { /// \brief Emit visible names into a debug ranges section. void emitDebugRanges(); - /// \brief Emit visible names into a debug macinfo section. - void emitDebugMacInfo(); - /// \brief Emit inline info using custom format. void emitDebugInlineInfo();