[DirectX backend] PartSize not include PartHeader
authorXiang Li <python3kgae@outlook.com>
Sun, 8 Jan 2023 04:31:26 +0000 (23:31 -0500)
committerXiang Li <python3kgae@outlook.com>
Tue, 10 Jan 2023 00:10:21 +0000 (19:10 -0500)
commit78a73dda601279b33691e6fb67047155c2390af6
treeaa2243619a8c76165ee8b21bfa74a92cc09a3b55
parente3becfacfd6f606671e0d338ac57e06f9cecb2e3
[DirectX backend] PartSize not include PartHeader

PartSize for a part in dx container is only the size of the content of the part, not include size of the PartHeader.

Differential Revision: https://reviews.llvm.org/D141207
llvm/lib/MC/MCDXContainerWriter.cpp
llvm/test/CodeGen/DirectX/ContainerData/DebugShaderHash.ll
llvm/test/CodeGen/DirectX/ContainerData/ShaderHash.ll
llvm/test/CodeGen/DirectX/ShaderFlags/double-extensions.ll
llvm/test/CodeGen/DirectX/ShaderFlags/doubles.ll
llvm/test/CodeGen/DirectX/embed-dxil.ll