[clang] [clang-sycl-linker][NFC] Remove dead includes (PR #161564)

Alexey Bader via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 1 11:24:26 PDT 2025


https://github.com/bader created https://github.com/llvm/llvm-project/pull/161564

These includes are not used by ClangSYCLLinker.cpp directly.

>From 1d76d92ae8b358466815479f25ffbed5d18fe385 Mon Sep 17 00:00:00 2001
From: Alexey Bader <alexey.bader at intel.com>
Date: Wed, 1 Oct 2025 11:15:27 -0700
Subject: [PATCH] [clang-sycl-linker][NFC] Remove dead includes

These includes are not used by ClangSYCLLinker.cpp directly.
---
 clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp b/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
index 8dd993fb04362..bef4e551d9dda 100644
--- a/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
+++ b/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
@@ -27,22 +27,15 @@
 #include "llvm/LTO/LTO.h"
 #include "llvm/Linker/Linker.h"
 #include "llvm/MC/TargetRegistry.h"
-#include "llvm/Object/Archive.h"
-#include "llvm/Object/ArchiveWriter.h"
 #include "llvm/Object/Binary.h"
-#include "llvm/Object/ELFObjectFile.h"
 #include "llvm/Object/IRObjectFile.h"
-#include "llvm/Object/ObjectFile.h"
 #include "llvm/Object/OffloadBinary.h"
 #include "llvm/Option/ArgList.h"
 #include "llvm/Option/OptTable.h"
 #include "llvm/Option/Option.h"
-#include "llvm/Remarks/HotnessThresholdParser.h"
 #include "llvm/Support/CommandLine.h"
-#include "llvm/Support/FileOutputBuffer.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/InitLLVM.h"
-#include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Program.h"
 #include "llvm/Support/Signals.h"



More information about the cfe-commits mailing list