[llvm] [DirectX] Fix build after #206330 (PR #206376)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 28 14:34:20 PDT 2026
https://github.com/MaskRay created https://github.com/llvm/llvm-project/pull/206376
None
>From 05dda51b5e8dd9c7e296337408ec2ee98584306a Mon Sep 17 00:00:00 2001
From: Fangrui Song <i at maskray.me>
Date: Sun, 28 Jun 2026 14:32:14 -0700
Subject: [PATCH] [DirectX] Fix build after #206330
---
llvm/lib/Target/DirectX/DXILRootSignature.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/llvm/lib/Target/DirectX/DXILRootSignature.cpp b/llvm/lib/Target/DirectX/DXILRootSignature.cpp
index e2ecdbcc46dc8..2f9d341eda3df 100644
--- a/llvm/lib/Target/DirectX/DXILRootSignature.cpp
+++ b/llvm/lib/Target/DirectX/DXILRootSignature.cpp
@@ -195,10 +195,9 @@ PreservedAnalyses RootSignatureAnalysisPrinter::run(Module &M,
const mcdxbc::RootParameterInfo &Info = RS.ParametersContainer.getInfo(I);
OS << "- Parameter Type: "
- << enumToStringRef(Info.Type, dxbc::getRootParameterTypes()) << "\n"
+ << dxbc::getRootParameterTypes().toString(Info.Type) << "\n"
<< " Shader Visibility: "
- << enumToStringRef(Info.Visibility, dxbc::getShaderVisibility())
- << "\n";
+ << dxbc::getShaderVisibility().toString(Info.Visibility) << "\n";
switch (Info.Type) {
case dxbc::RootParameterType::Constants32Bit: {
const mcdxbc::RootConstants &Constants =
More information about the llvm-commits
mailing list