forked from OSchip/llvm-project
Add section information for the DWARF5 split debug proposal
string offset section. llvm-svn: 171474
This commit is contained in:
parent
aa082063cb
commit
c0fa867c7b
|
@ -114,6 +114,7 @@ protected:
|
||||||
const MCSection *DwarfStrDWOSection;
|
const MCSection *DwarfStrDWOSection;
|
||||||
const MCSection *DwarfLineDWOSection;
|
const MCSection *DwarfLineDWOSection;
|
||||||
const MCSection *DwarfLocDWOSection;
|
const MCSection *DwarfLocDWOSection;
|
||||||
|
const MCSection *DwarfStrOffDWOSection;
|
||||||
|
|
||||||
// Extra TLS Variable Data section. If the target needs to put additional
|
// Extra TLS Variable Data section. If the target needs to put additional
|
||||||
// information for a TLS variable, it'll go here.
|
// information for a TLS variable, it'll go here.
|
||||||
|
@ -247,6 +248,9 @@ public:
|
||||||
const MCSection *getDwarfLocDWOSection() const {
|
const MCSection *getDwarfLocDWOSection() const {
|
||||||
return DwarfLocDWOSection;
|
return DwarfLocDWOSection;
|
||||||
}
|
}
|
||||||
|
const MCSection *getDwarfStrOffDWOSection() const {
|
||||||
|
return DwarfStrOffDWOSection;
|
||||||
|
}
|
||||||
|
|
||||||
const MCSection *getTLSExtraDataSection() const {
|
const MCSection *getTLSExtraDataSection() const {
|
||||||
return TLSExtraDataSection;
|
return TLSExtraDataSection;
|
||||||
|
|
|
@ -426,6 +426,9 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
|
||||||
DwarfLocDWOSection =
|
DwarfLocDWOSection =
|
||||||
Ctx->getELFSection(".debug_loc.dwo", ELF::SHT_PROGBITS, 0,
|
Ctx->getELFSection(".debug_loc.dwo", ELF::SHT_PROGBITS, 0,
|
||||||
SectionKind::getMetadata());
|
SectionKind::getMetadata());
|
||||||
|
DwarfStrOffDWOSection =
|
||||||
|
Ctx->getELFSection(".debug_str_offsets.dwo", ELF::SHT_PROGBITS, 0,
|
||||||
|
SectionKind::getMetadata());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue