Remove useless .debug_macinfo section setup.
authorPaul Robinson <paul_robinson@playstation.sony.com>
Mon, 2 Mar 2015 19:52:42 +0000 (19:52 +0000)
committerPaul Robinson <paul_robinson@playstation.sony.com>
Mon, 2 Mar 2015 19:52:42 +0000 (19:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231001 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCObjectFileInfo.h
lib/MC/MCObjectFileInfo.cpp
lib/Target/NVPTX/NVPTXISelLowering.cpp
lib/Target/NVPTX/NVPTXTargetObjectFile.h

index 321043c522ee451e93bbca9db7349903843fabf5..025a76a27af962ecaca99287a0d160d2891e450a 100644 (file)
@@ -99,7 +99,6 @@ protected:
   const MCSection *DwarfLocSection;
   const MCSection *DwarfARangesSection;
   const MCSection *DwarfRangesSection;
-  const MCSection *DwarfMacroInfoSection;
   // The pubnames section is no longer generated by default.  The generation
   // can be enabled by a compiler flag.
   const MCSection *DwarfPubNamesSection;
@@ -241,9 +240,6 @@ public:
   const MCSection *getDwarfLocSection() const { return DwarfLocSection; }
   const MCSection *getDwarfARangesSection() const { return DwarfARangesSection;}
   const MCSection *getDwarfRangesSection() const { return DwarfRangesSection; }
-  const MCSection *getDwarfMacroInfoSection() const {
-    return DwarfMacroInfoSection;
-  }
 
   // DWARF5 Experimental Debug Info Sections
   const MCSection *getDwarfAccelNamesSection() const {
index 11c9cc209954bb87082f67d60596ea8ac1798d52..0a2c1f8685b83c591e4d0bd4177dcdc6634c3ab2 100644 (file)
@@ -248,10 +248,6 @@ void MCObjectFileInfo::InitMachOMCObjectFileInfo(Triple T) {
     Ctx->getMachOSection("__DWARF", "__debug_ranges",
                          MachO::S_ATTR_DEBUG,
                          SectionKind::getMetadata());
-  DwarfMacroInfoSection =
-    Ctx->getMachOSection("__DWARF", "__debug_macinfo",
-                         MachO::S_ATTR_DEBUG,
-                         SectionKind::getMetadata());
   DwarfDebugInlineSection =
     Ctx->getMachOSection("__DWARF", "__debug_inlined",
                          MachO::S_ATTR_DEBUG,
@@ -498,8 +494,6 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
       Ctx->getELFSection(".debug_aranges", ELF::SHT_PROGBITS, 0);
   DwarfRangesSection =
       Ctx->getELFSection(".debug_ranges", ELF::SHT_PROGBITS, 0);
-  DwarfMacroInfoSection =
-      Ctx->getELFSection(".debug_macinfo", ELF::SHT_PROGBITS, 0);
 
   // DWARF5 Experimental Debug Info
 
@@ -689,12 +683,6 @@ void MCObjectFileInfo::InitCOFFMCObjectFileInfo(Triple T) {
                         COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
                         COFF::IMAGE_SCN_MEM_READ,
                         SectionKind::getMetadata());
-  DwarfMacroInfoSection =
-    Ctx->getCOFFSection(".debug_macinfo",
-                        COFF::IMAGE_SCN_MEM_DISCARDABLE |
-                        COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
-                        COFF::IMAGE_SCN_MEM_READ,
-                        SectionKind::getMetadata());
   DwarfInfoDWOSection =
     Ctx->getCOFFSection(".debug_info.dwo",
                         COFF::IMAGE_SCN_MEM_DISCARDABLE |
index 9e25d45e3a51de2f37e1fb35c18b782158517b29..b09198e28f1ba0ce512f13828ffe9f318f1a0a29 100644 (file)
@@ -4492,7 +4492,6 @@ NVPTXTargetObjectFile::~NVPTXTargetObjectFile() {
   delete DwarfLocSection;
   delete DwarfARangesSection;
   delete DwarfRangesSection;
-  delete DwarfMacroInfoSection;
 }
 
 const MCSection *
index 00ceca50a9f22c0510f784224cb124c66549cbb1..5d9ab0d511fe74982af0f65e9cd9260ec2395ca8 100644 (file)
@@ -41,7 +41,6 @@ public:
     DwarfLocSection = nullptr;
     DwarfARangesSection = nullptr;
     DwarfRangesSection = nullptr;
-    DwarfMacroInfoSection = nullptr;
   }
 
   virtual ~NVPTXTargetObjectFile();
@@ -83,8 +82,6 @@ public:
         new NVPTXSection(MCSection::SV_ELF, SectionKind::getMetadata());
     DwarfRangesSection =
         new NVPTXSection(MCSection::SV_ELF, SectionKind::getMetadata());
-    DwarfMacroInfoSection =
-        new NVPTXSection(MCSection::SV_ELF, SectionKind::getMetadata());
   }
 
   const MCSection *getSectionForConstant(SectionKind Kind,