[llvm] 60cccae - [NFC] Remove dead code to fix build (#207753)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 08:48:45 PDT 2026
Author: Chris B
Date: 2026-07-06T15:48:40Z
New Revision: 60cccae52fda78a9cdc9323900e14952d71b2624
URL: https://github.com/llvm/llvm-project/commit/60cccae52fda78a9cdc9323900e14952d71b2624
DIFF: https://github.com/llvm/llvm-project/commit/60cccae52fda78a9cdc9323900e14952d71b2624.diff
LOG: [NFC] Remove dead code to fix build (#207753)
LLVM changed the interfaces around inline assembly, and while we could
have updated this code, in practice DXIL doesn't allow inline assembly
so I removed it.
Added:
Modified:
llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
index 4680ba1630734..6f14f70014b01 100644
--- a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
+++ b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
@@ -1186,9 +1186,8 @@ void DXILBitcodeWriter::writeModuleInfo() {
writeStringRecord(Stream, bitc::MODULE_CODE_TRIPLE, Triple, 0 /*TODO*/);
writeStringRecord(Stream, bitc::MODULE_CODE_DATALAYOUT, DL, 0 /*TODO*/);
- if (!M.getModuleInlineAsm().empty())
- writeStringRecord(Stream, bitc::MODULE_CODE_ASM, M.getModuleInlineAsm(),
- 0 /*TODO*/);
+ // The original bitcode writer wrote inline assembly here. Inline assembly
+ // isn't valid in DXIL, so this is removed.
// Emit information about sections and GC, computing how many there are. Also
// compute the maximum alignment value.
More information about the llvm-commits
mailing list