[llvm] def55a8 - DebugInfo: Add a couple of missing COFF sections to make convert-loclist.ll pass on Windows
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 4 19:24:28 PST 2020
Author: David Blaikie
Date: 2020-02-04T19:23:57-08:00
New Revision: def55a8efdf094148151c2e281049fa5d19072c7
URL: https://github.com/llvm/llvm-project/commit/def55a8efdf094148151c2e281049fa5d19072c7
DIFF: https://github.com/llvm/llvm-project/commit/def55a8efdf094148151c2e281049fa5d19072c7.diff
LOG: DebugInfo: Add a couple of missing COFF sections to make convert-loclist.ll pass on Windows
Added:
Modified:
llvm/lib/MC/MCObjectFileInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index f339bcffcf68..18a99ce24032 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -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 |
More information about the llvm-commits
mailing list