mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
Add brief support for the fission .debug_info.dwo section for
ELF output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168764 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ea1504d0bd
commit
6acb53152c
@ -108,6 +108,10 @@ protected:
|
|||||||
const MCSection *DwarfAccelNamespaceSection;
|
const MCSection *DwarfAccelNamespaceSection;
|
||||||
const MCSection *DwarfAccelTypesSection;
|
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
|
// 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.
|
||||||
const MCSection *TLSExtraDataSection;
|
const MCSection *TLSExtraDataSection;
|
||||||
@ -225,6 +229,9 @@ public:
|
|||||||
const MCSection *getDwarfAccelTypesSection() const {
|
const MCSection *getDwarfAccelTypesSection() const {
|
||||||
return DwarfAccelTypesSection;
|
return DwarfAccelTypesSection;
|
||||||
}
|
}
|
||||||
|
const MCSection *getDwarfInfoDWOSection() const {
|
||||||
|
return DwarfInfoDWOSection;
|
||||||
|
}
|
||||||
|
|
||||||
const MCSection *getTLSExtraDataSection() const {
|
const MCSection *getTLSExtraDataSection() const {
|
||||||
return TLSExtraDataSection;
|
return TLSExtraDataSection;
|
||||||
|
@ -408,6 +408,11 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
|
|||||||
DwarfAccelTypesSection =
|
DwarfAccelTypesSection =
|
||||||
Ctx->getELFSection(".apple_types", ELF::SHT_PROGBITS, 0,
|
Ctx->getELFSection(".apple_types", ELF::SHT_PROGBITS, 0,
|
||||||
SectionKind::getMetadata());
|
SectionKind::getMetadata());
|
||||||
|
|
||||||
|
// Fission Sections
|
||||||
|
DwarfInfoDWOSection =
|
||||||
|
Ctx->getELFSection(".debug_info.dwo", ELF::SHT_PROGBITS, 0,
|
||||||
|
SectionKind::getMetadata());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user