[llvm] 3a7d64a - [DirectX] Fix build after #206330 (#206376)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 28 14:34:25 PDT 2026


Author: Fangrui Song
Date: 2026-06-28T14:34:20-07:00
New Revision: 3a7d64a882421052101899d7d9c23685db5fd355

URL: https://github.com/llvm/llvm-project/commit/3a7d64a882421052101899d7d9c23685db5fd355
DIFF: https://github.com/llvm/llvm-project/commit/3a7d64a882421052101899d7d9c23685db5fd355.diff

LOG: [DirectX] Fix build after #206330 (#206376)

Added: 
    

Modified: 
    llvm/lib/Target/DirectX/DXILRootSignature.cpp

Removed: 
    


################################################################################
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