Skip to content

Commit e2f8bfc

Browse files
authored
[clang-sycl-linker][NFC] Remove dead includes (#161564)
These includes are not used by ClangSYCLLinker.cpp directly. Explicitly include FormatVariadic.h for formatv declaration, which was implicitly included by removed headers.
1 parent 103d2ca commit e2f8bfc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,16 @@
2727
#include "llvm/LTO/LTO.h"
2828
#include "llvm/Linker/Linker.h"
2929
#include "llvm/MC/TargetRegistry.h"
30-
#include "llvm/Object/Archive.h"
31-
#include "llvm/Object/ArchiveWriter.h"
3230
#include "llvm/Object/Binary.h"
33-
#include "llvm/Object/ELFObjectFile.h"
3431
#include "llvm/Object/IRObjectFile.h"
35-
#include "llvm/Object/ObjectFile.h"
3632
#include "llvm/Object/OffloadBinary.h"
3733
#include "llvm/Option/ArgList.h"
3834
#include "llvm/Option/OptTable.h"
3935
#include "llvm/Option/Option.h"
40-
#include "llvm/Remarks/HotnessThresholdParser.h"
4136
#include "llvm/Support/CommandLine.h"
42-
#include "llvm/Support/FileOutputBuffer.h"
4337
#include "llvm/Support/FileSystem.h"
38+
#include "llvm/Support/FormatVariadic.h"
4439
#include "llvm/Support/InitLLVM.h"
45-
#include "llvm/Support/MemoryBuffer.h"
4640
#include "llvm/Support/Path.h"
4741
#include "llvm/Support/Program.h"
4842
#include "llvm/Support/Signals.h"

0 commit comments

Comments
 (0)