[llvm-commits] [llvm] r168764 - in /llvm/trunk: include/llvm/MC/MCObjectFileInfo.h lib/MC/MCObjectFileInfo.cpp

Eric Christopher echristo at gmail.com
Tue Nov 27 18:49:38 PST 2012


Author: echristo
Date: Tue Nov 27 20:49:38 2012
New Revision: 168764

URL: http://llvm.org/viewvc/llvm-project?rev=168764&view=rev
Log:
Add brief support for the fission .debug_info.dwo section for
ELF output.

Modified:
    llvm/trunk/include/llvm/MC/MCObjectFileInfo.h
    llvm/trunk/lib/MC/MCObjectFileInfo.cpp

Modified: llvm/trunk/include/llvm/MC/MCObjectFileInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCObjectFileInfo.h?rev=168764&r1=168763&r2=168764&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCObjectFileInfo.h (original)
+++ llvm/trunk/include/llvm/MC/MCObjectFileInfo.h Tue Nov 27 20:49:38 2012
@@ -108,6 +108,10 @@
   const MCSection *DwarfAccelNamespaceSection;
   const MCSection *DwarfAccelTypesSection;
 
+  /// These are used for the Fission separate debug information files.
+  /// DwarfInfoDWOSection
+  const MCSection *DwarfInfoDWOSection;
+
   // Extra TLS Variable Data section.  If the target needs to put additional
   // information for a TLS variable, it'll go here.
   const MCSection *TLSExtraDataSection;
@@ -225,6 +229,9 @@
   const MCSection *getDwarfAccelTypesSection() const {
     return DwarfAccelTypesSection;
   }
+  const MCSection *getDwarfInfoDWOSection() const {
+    return DwarfInfoDWOSection;
+  }
 
   const MCSection *getTLSExtraDataSection() const {
     return TLSExtraDataSection;

Modified: llvm/trunk/lib/MC/MCObjectFileInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectFileInfo.cpp?rev=168764&r1=168763&r2=168764&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCObjectFileInfo.cpp (original)
+++ llvm/trunk/lib/MC/MCObjectFileInfo.cpp Tue Nov 27 20:49:38 2012
@@ -408,6 +408,11 @@
   DwarfAccelTypesSection =
     Ctx->getELFSection(".apple_types", ELF::SHT_PROGBITS, 0,
                        SectionKind::getMetadata());
+
+  // Fission Sections
+  DwarfInfoDWOSection =
+    Ctx->getELFSection(".debug_info.dwo", ELF::SHT_PROGBITS, 0,
+                       SectionKind::getMetadata());
 }
 
 





More information about the llvm-commits mailing list