[llvm] 9a858b6 - [DirectX] Fix format override in DXILPrettyPrinter.cpp (#207588)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 5 07:39:28 PDT 2026


Author: Fangrui Song
Date: 2026-07-05T07:39:24-07:00
New Revision: 9a858b68628a37a36d82b076425c1e5ce902cb6f

URL: https://github.com/llvm/llvm-project/commit/9a858b68628a37a36d82b076425c1e5ce902cb6f
DIFF: https://github.com/llvm/llvm-project/commit/9a858b68628a37a36d82b076425c1e5ce902cb6f.diff

LOG: [DirectX] Fix format override in DXILPrettyPrinter.cpp (#207588)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/DirectX/DXILPrettyPrinter.cpp b/llvm/lib/Target/DirectX/DXILPrettyPrinter.cpp
index d28a2ef1095f8..cc092819913a8 100644
--- a/llvm/lib/Target/DirectX/DXILPrettyPrinter.cpp
+++ b/llvm/lib/Target/DirectX/DXILPrettyPrinter.cpp
@@ -153,7 +153,7 @@ struct FormatResourceDimension
 
   bool HasCounter;
 
-  void format(llvm::raw_ostream &OS, StringRef Style) override {
+  void format(llvm::raw_ostream &OS, StringRef Style) {
     dxil::ResourceKind RK = Item.getResourceKind();
     switch (RK) {
     default: {
@@ -193,7 +193,7 @@ struct FormatBindingID
       : llvm::FormatAdapter<const dxil::ResourceInfo &>(RI),
         RC(RTI.getResourceClass()) {}
 
-  void format(llvm::raw_ostream &OS, StringRef Style) override {
+  void format(llvm::raw_ostream &OS, StringRef Style) {
     OS << getRCPrefix(RC).upper() << Item.getBinding().RecordID;
   }
 };
@@ -207,7 +207,7 @@ struct FormatBindingLocation
       : llvm::FormatAdapter<const dxil::ResourceInfo &>(RI),
         RC(RTI.getResourceClass()) {}
 
-  void format(llvm::raw_ostream &OS, StringRef Style) override {
+  void format(llvm::raw_ostream &OS, StringRef Style) {
     const auto &Binding = Item.getBinding();
     OS << getRCPrefix(RC) << Binding.LowerBound;
     if (Binding.Space)
@@ -220,7 +220,7 @@ struct FormatBindingSize
   explicit FormatBindingSize(const dxil::ResourceInfo &RI)
       : llvm::FormatAdapter<const dxil::ResourceInfo &>(RI) {}
 
-  void format(llvm::raw_ostream &OS, StringRef Style) override {
+  void format(llvm::raw_ostream &OS, StringRef Style) {
     uint32_t Size = Item.getBinding().Size;
     if (Size == 0)
       OS << "unbounded";


        


More information about the llvm-commits mailing list