Add section information for the DWARF5 split debug proposal
authorEric Christopher <echristo@gmail.com>
Fri, 4 Jan 2013 17:59:22 +0000 (17:59 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 4 Jan 2013 17:59:22 +0000 (17:59 +0000)
string offset section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171474 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCObjectFileInfo.h
lib/MC/MCObjectFileInfo.cpp

index dcde9d9049e7a0b2bff3942bf5952682e10217d2..c8444fda2a6f106f3ffd5b675ad6c5eccdc47cb4 100644 (file)
@@ -114,6 +114,7 @@ protected:
   const MCSection *DwarfStrDWOSection;
   const MCSection *DwarfLineDWOSection;
   const MCSection *DwarfLocDWOSection;
+  const MCSection *DwarfStrOffDWOSection;
 
   // Extra TLS Variable Data section.  If the target needs to put additional
   // information for a TLS variable, it'll go here.
@@ -247,6 +248,9 @@ public:
   const MCSection *getDwarfLocDWOSection() const {
     return DwarfLocDWOSection;
   }
+  const MCSection *getDwarfStrOffDWOSection() const {
+    return DwarfStrOffDWOSection;
+  }
 
   const MCSection *getTLSExtraDataSection() const {
     return TLSExtraDataSection;
index d57e0c5b4a54a0dd7df7ca8d458c9da40552d56c..d73b9b10055b4133a087403830dc966de09e5e1d 100644 (file)
@@ -426,6 +426,9 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
   DwarfLocDWOSection =
     Ctx->getELFSection(".debug_loc.dwo", ELF::SHT_PROGBITS, 0,
                        SectionKind::getMetadata());
+  DwarfStrOffDWOSection =
+    Ctx->getELFSection(".debug_str_offsets.dwo", ELF::SHT_PROGBITS, 0,
+                       SectionKind::getMetadata());
 }