[clang] [HLSL][DirectX] Add the Qdx-rootsignature-strip driver option (PR #154454)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 22 08:48:07 PDT 2025


================
@@ -42,7 +42,21 @@ class LLVM_LIBRARY_VISIBILITY MetalConverter : public Tool {
                     const llvm::opt::ArgList &TCArgs,
                     const char *LinkingOutput) const override;
 };
+
 } // namespace hlsl
+
+class LLVM_LIBRARY_VISIBILITY LLVMObjcopy : public Tool {
+public:
+  LLVMObjcopy(const ToolChain &TC) : Tool("LLVMObjcopy", "llvm-objcopy", TC) {}
+
+  bool hasIntegratedCPP() const override { return false; }
+
+  void ConstructJob(Compilation &C, const JobAction &JA,
+                    const InputInfo &Output, const InputInfoList &Inputs,
+                    const llvm::opt::ArgList &TCArgs,
+                    const char *LinkingOutput) const override;
+};
----------------
bogner wrote:

`LLVMObjcopy` fairly generic, even if we are only using it in the HLSL toolchain right now. Should this class be defined somewhere less toolchain specific?

https://github.com/llvm/llvm-project/pull/154454


More information about the cfe-commits mailing list