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
This commit is contained in:
Chris Bieneman
2022-03-19 14:33:39 -05:00
committed by Chris Bieneman
parent d1d3563278
commit 9130e471fe
11 changed files with 36 additions and 2 deletions

View File

@@ -4870,6 +4870,9 @@ static const char *getSectionNameForBitcode(const Triple &T) {
case Triple::XCOFF:
llvm_unreachable("XCOFF is not yet implemented");
break;
case Triple::DXContainer:
llvm_unreachable("DXContainer is not yet implemented");
break;
}
llvm_unreachable("Unimplemented ObjectFormatType");
}
@@ -4889,6 +4892,9 @@ static const char *getSectionNameForCommandline(const Triple &T) {
case Triple::XCOFF:
llvm_unreachable("XCOFF is not yet implemented");
break;
case Triple::DXContainer:
llvm_unreachable("DXC is not yet implemented");
break;
}
llvm_unreachable("Unimplemented ObjectFormatType");
}