forked from OSchip/llvm-project
DebugInfo: Add a couple of missing COFF sections to make convert-loclist.ll pass on Windows
This commit is contained in:
parent
9329cfca84
commit
def55a8efd
|
@ -610,6 +610,11 @@ void MCObjectFileInfo::initCOFFMCObjectFileInfo(const Triple &T) {
|
|||
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getMetadata(), "section_debug_loc");
|
||||
DwarfLoclistsSection = Ctx->getCOFFSection(
|
||||
".debug_loclists",
|
||||
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getMetadata(), "section_debug_loclists");
|
||||
DwarfARangesSection = Ctx->getCOFFSection(
|
||||
".debug_aranges",
|
||||
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
||||
|
@ -620,6 +625,11 @@ void MCObjectFileInfo::initCOFFMCObjectFileInfo(const Triple &T) {
|
|||
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getMetadata(), "debug_range");
|
||||
DwarfRnglistsSection = Ctx->getCOFFSection(
|
||||
".debug_rnglists",
|
||||
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getMetadata(), "debug_rnglists");
|
||||
DwarfMacinfoSection = Ctx->getCOFFSection(
|
||||
".debug_macinfo",
|
||||
COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
||||
|
|
Loading…
Reference in New Issue