Skip to content

Commit 36d2b1c

Browse files
[llvm-objcopy] Remove unused includes (NFC) (#141389)
These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures.
1 parent 213eeb9 commit 36d2b1c

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

llvm/tools/llvm-objcopy/llvm-objcopy.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,26 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "ObjcopyOptions.h"
10-
#include "llvm/ADT/STLExtras.h"
1110
#include "llvm/ADT/SmallVector.h"
1211
#include "llvm/ADT/StringRef.h"
1312
#include "llvm/ADT/Twine.h"
14-
#include "llvm/BinaryFormat/ELF.h"
15-
#include "llvm/ObjCopy/COFF/COFFConfig.h"
1613
#include "llvm/ObjCopy/COFF/COFFObjcopy.h"
1714
#include "llvm/ObjCopy/CommonConfig.h"
1815
#include "llvm/ObjCopy/ELF/ELFConfig.h"
1916
#include "llvm/ObjCopy/ELF/ELFObjcopy.h"
20-
#include "llvm/ObjCopy/MachO/MachOConfig.h"
2117
#include "llvm/ObjCopy/MachO/MachOObjcopy.h"
2218
#include "llvm/ObjCopy/ObjCopy.h"
23-
#include "llvm/ObjCopy/wasm/WasmConfig.h"
2419
#include "llvm/ObjCopy/wasm/WasmObjcopy.h"
2520
#include "llvm/Object/Archive.h"
26-
#include "llvm/Object/ArchiveWriter.h"
2721
#include "llvm/Object/Binary.h"
2822
#include "llvm/Object/COFF.h"
29-
#include "llvm/Object/ELFObjectFile.h"
30-
#include "llvm/Object/ELFTypes.h"
3123
#include "llvm/Object/Error.h"
32-
#include "llvm/Object/MachO.h"
3324
#include "llvm/Object/MachOUniversal.h"
34-
#include "llvm/Object/Wasm.h"
3525
#include "llvm/Option/Arg.h"
3626
#include "llvm/Option/ArgList.h"
3727
#include "llvm/Option/Option.h"
3828
#include "llvm/Support/Casting.h"
3929
#include "llvm/Support/CommandLine.h"
40-
#include "llvm/Support/Errc.h"
4130
#include "llvm/Support/Error.h"
4231
#include "llvm/Support/ErrorHandling.h"
4332
#include "llvm/Support/ErrorOr.h"
@@ -46,16 +35,13 @@
4635
#include "llvm/Support/Memory.h"
4736
#include "llvm/Support/Path.h"
4837
#include "llvm/Support/Process.h"
49-
#include "llvm/Support/SmallVectorMemoryBuffer.h"
5038
#include "llvm/Support/StringSaver.h"
5139
#include "llvm/Support/WithColor.h"
5240
#include "llvm/Support/raw_ostream.h"
5341
#include "llvm/TargetParser/Host.h"
54-
#include <algorithm>
5542
#include <cassert>
5643
#include <cstdlib>
5744
#include <memory>
58-
#include <system_error>
5945
#include <utility>
6046

6147
using namespace llvm;

0 commit comments

Comments
 (0)