COFF: Consistently format the DWARF sections

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Majnemer 2015-02-22 02:35:22 +00:00
parent 5ce69d8c40
commit f68ceb2e58

View File

@ -683,66 +683,65 @@ void MCObjectFileInfo::InitCOFFMCObjectFileInfo(Triple T) {
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata()); SectionKind::getMetadata());
DwarfInfoDWOSection = DwarfInfoDWOSection =
Ctx->getCOFFSection(".debug_info.dwo", Ctx->getCOFFSection(".debug_info.dwo",
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_MEM_DISCARDABLE |
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata()); SectionKind::getMetadata());
DwarfTypesDWOSection = DwarfTypesDWOSection =
Ctx->getCOFFSection(".debug_types.dwo", COFF::IMAGE_SCN_MEM_DISCARDABLE | Ctx->getCOFFSection(".debug_types.dwo",
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_DISCARDABLE |
SectionKind::getMetadata()); COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata());
DwarfAbbrevDWOSection = DwarfAbbrevDWOSection =
Ctx->getCOFFSection(".debug_abbrev.dwo", Ctx->getCOFFSection(".debug_abbrev.dwo",
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_MEM_DISCARDABLE |
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata()); SectionKind::getMetadata());
DwarfStrDWOSection = DwarfStrDWOSection =
Ctx->getCOFFSection(".debug_str.dwo", Ctx->getCOFFSection(".debug_str.dwo",
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_MEM_DISCARDABLE |
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata()); SectionKind::getMetadata());
DwarfLineDWOSection = DwarfLineDWOSection =
Ctx->getCOFFSection(".debug_line.dwo", Ctx->getCOFFSection(".debug_line.dwo",
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_MEM_DISCARDABLE |
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata()); SectionKind::getMetadata());
DwarfLocDWOSection = DwarfLocDWOSection =
Ctx->getCOFFSection(".debug_loc.dwo", Ctx->getCOFFSection(".debug_loc.dwo",
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_MEM_DISCARDABLE |
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata()); SectionKind::getMetadata());
DwarfStrOffDWOSection = DwarfStrOffDWOSection =
Ctx->getCOFFSection(".debug_str_offsets.dwo", Ctx->getCOFFSection(".debug_str_offsets.dwo",
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_MEM_DISCARDABLE |
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata()); SectionKind::getMetadata());
DwarfAddrSection = DwarfAddrSection =
Ctx->getCOFFSection(".debug_addr", Ctx->getCOFFSection(".debug_addr",
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_MEM_DISCARDABLE |
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata()); SectionKind::getMetadata());
DwarfAccelNamesSection = DwarfAccelNamesSection =
Ctx->getCOFFSection(".apple_names", Ctx->getCOFFSection(".apple_names",
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_MEM_DISCARDABLE |
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata()); SectionKind::getMetadata());
DwarfAccelNamespaceSection = DwarfAccelNamespaceSection =
Ctx->getCOFFSection(".apple_namespaces", Ctx->getCOFFSection(".apple_namespaces",
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_MEM_DISCARDABLE |
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata()); SectionKind::getMetadata());
DwarfAccelTypesSection = DwarfAccelTypesSection =
Ctx->getCOFFSection(".apple_types", Ctx->getCOFFSection(".apple_types",
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_MEM_DISCARDABLE |
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata()); SectionKind::getMetadata());
DwarfAccelObjCSection = DwarfAccelObjCSection =
Ctx->getCOFFSection(".apple_objc", Ctx->getCOFFSection(".apple_objc",
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_MEM_DISCARDABLE |
COFF::IMAGE_SCN_MEM_READ, COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata()); SectionKind::getMetadata());
DrectveSection = DrectveSection =
Ctx->getCOFFSection(".drectve", Ctx->getCOFFSection(".drectve",