[llvm] [DXIL] Remove extraneous include from DXILABI.h (PR #100620)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 11:01:47 PDT 2024


https://github.com/bogner created https://github.com/llvm/llvm-project/pull/100620

I'm not sure how an include of StringSwitch got here, but it isn't needed.

>From aec7a9e4dfbe67604150bfd52f785ba7eeed3f73 Mon Sep 17 00:00:00 2001
From: Justin Bogner <mail at justinbogner.com>
Date: Wed, 24 Jul 2024 23:12:38 -0700
Subject: [PATCH] [DXIL] Remove extraneous include from DXILABI.h

I'm not sure how an include of StringSwitch got here, but it isn't
needed.
---
 llvm/include/llvm/Frontend/HLSL/HLSLResource.h | 1 +
 llvm/include/llvm/Support/DXILABI.h            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/llvm/include/llvm/Frontend/HLSL/HLSLResource.h b/llvm/include/llvm/Frontend/HLSL/HLSLResource.h
index 4ed742b4129a2..989893bcaccec 100644
--- a/llvm/include/llvm/Frontend/HLSL/HLSLResource.h
+++ b/llvm/include/llvm/Frontend/HLSL/HLSLResource.h
@@ -13,6 +13,7 @@
 #ifndef LLVM_FRONTEND_HLSL_HLSLRESOURCE_H
 #define LLVM_FRONTEND_HLSL_HLSLRESOURCE_H
 
+#include "llvm/ADT/StringRef.h"
 #include "llvm/Support/DXILABI.h"
 
 namespace llvm {
diff --git a/llvm/include/llvm/Support/DXILABI.h b/llvm/include/llvm/Support/DXILABI.h
index d0bed4d5cf383..a2222eec09ba8 100644
--- a/llvm/include/llvm/Support/DXILABI.h
+++ b/llvm/include/llvm/Support/DXILABI.h
@@ -17,7 +17,7 @@
 #ifndef LLVM_SUPPORT_DXILABI_H
 #define LLVM_SUPPORT_DXILABI_H
 
-#include "llvm/ADT/StringSwitch.h"
+#include <cstdint>
 
 namespace llvm {
 namespace dxil {



More information about the llvm-commits mailing list