aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorChris Bieneman <cbieneman@microsoft.com>2022-03-19 14:33:39 -0500
committerChris Bieneman <chris.bieneman@me.com>2022-03-29 14:34:23 -0500
commit9130e471fe82afc51b5e691f1620aea09c8fbf2e (patch)
tree6a937ef7101ca72cf28b268d2a72f4d093f23e4f /llvm/lib/MC/MCObjectFileInfo.cpp
parentd1d3563278589b2e19077e6a81cd9455d0195577 (diff)
downloadllvm-9130e471fe82afc51b5e691f1620aea09c8fbf2e.zip
llvm-9130e471fe82afc51b5e691f1620aea09c8fbf2e.tar.gz
llvm-9130e471fe82afc51b5e691f1620aea09c8fbf2e.tar.bz2
Add DXContainer
DXIL is wrapped in a container format defined by the DirectX 11 specification. Codebases differ in calling this format either DXBC or DXILContainer. Since eventually we want to add support for DXBC as a target architecture and the format is used by DXBC and DXIL, I've termed it DXContainer here. Most of the changes in this patch are just adding cases to switch statements to address warnings. Reviewed By: pete Differential Revision: https://reviews.llvm.org/D122062
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 73c3eed..3da477d 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -1038,6 +1038,8 @@ void MCObjectFileInfo::initMCObjectFileInfo(MCContext &MCCtx, bool PIC,
case MCContext::IsXCOFF:
initXCOFFMCObjectFileInfo(TheTriple);
break;
+ case MCContext::IsDXContainer:
+ break;
}
}
@@ -1054,6 +1056,7 @@ MCSection *MCObjectFileInfo::getDwarfComdatSection(const char *Name,
case Triple::COFF:
case Triple::GOFF:
case Triple::XCOFF:
+ case Triple::DXContainer:
case Triple::UnknownObjectFormat:
report_fatal_error("Cannot get DWARF comdat section for this object file "
"format: not implemented.");