Skip to content

Commit 6688bcf

Browse files
[lld] Remove unused includes (NFC)
1 parent b754e40 commit 6688bcf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+0
-155
lines changed

lld/COFF/COFFLinkerContext.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111

1212
#include "COFFLinkerContext.h"
1313
#include "Symbols.h"
14-
#include "lld/Common/Memory.h"
1514
#include "llvm/BinaryFormat/COFF.h"
16-
#include "llvm/DebugInfo/CodeView/TypeHashing.h"
17-
#include "llvm/Demangle/Demangle.h"
1815

1916
namespace lld::coff {
2017
COFFLinkerContext::COFFLinkerContext()

lld/COFF/CallGraphSort.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "InputFiles.h"
1717
#include "SymbolTable.h"
1818
#include "Symbols.h"
19-
#include "lld/Common/ErrorHandler.h"
2019

2120
#include <numeric>
2221

lld/COFF/DebugTypes.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "DebugTypes.h"
1010
#include "COFFLinkerContext.h"
1111
#include "Chunks.h"
12-
#include "Driver.h"
1312
#include "InputFiles.h"
1413
#include "PDB.h"
1514
#include "TypeMerger.h"

lld/COFF/Driver.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "Writer.h"
2020
#include "lld/Common/Args.h"
2121
#include "lld/Common/CommonLinkerContext.h"
22-
#include "lld/Common/Driver.h"
2322
#include "lld/Common/Filesystem.h"
2423
#include "lld/Common/Timer.h"
2524
#include "lld/Common/Version.h"
@@ -28,7 +27,6 @@
2827
#include "llvm/BinaryFormat/Magic.h"
2928
#include "llvm/Config/llvm-config.h"
3029
#include "llvm/LTO/LTO.h"
31-
#include "llvm/Object/ArchiveWriter.h"
3230
#include "llvm/Object/COFFImportFile.h"
3331
#include "llvm/Option/Arg.h"
3432
#include "llvm/Option/ArgList.h"

lld/COFF/DriverUtils.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "Symbols.h"
1818
#include "lld/Common/ErrorHandler.h"
1919
#include "lld/Common/Memory.h"
20-
#include "llvm/ADT/STLExtras.h"
2120
#include "llvm/ADT/StringExtras.h"
2221
#include "llvm/ADT/StringSwitch.h"
2322
#include "llvm/BinaryFormat/COFF.h"
@@ -28,14 +27,11 @@
2827
#include "llvm/Option/ArgList.h"
2928
#include "llvm/Option/Option.h"
3029
#include "llvm/Support/CommandLine.h"
31-
#include "llvm/Support/FileUtilities.h"
3230
#include "llvm/Support/MathExtras.h"
3331
#include "llvm/Support/Process.h"
3432
#include "llvm/Support/Program.h"
35-
#include "llvm/Support/TimeProfiler.h"
3633
#include "llvm/Support/raw_ostream.h"
3734
#include "llvm/WindowsManifest/WindowsManifestMerger.h"
38-
#include <limits>
3935
#include <memory>
4036
#include <optional>
4137

lld/COFF/ICF.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@
2121
#include "COFFLinkerContext.h"
2222
#include "Chunks.h"
2323
#include "Symbols.h"
24-
#include "lld/Common/ErrorHandler.h"
2524
#include "lld/Common/Timer.h"
26-
#include "llvm/ADT/Hashing.h"
27-
#include "llvm/Support/Debug.h"
2825
#include "llvm/Support/Parallel.h"
2926
#include "llvm/Support/TimeProfiler.h"
30-
#include "llvm/Support/raw_ostream.h"
3127
#include "llvm/Support/xxhash.h"
3228
#include <algorithm>
3329
#include <atomic>

lld/COFF/InputFiles.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include "SymbolTable.h"
1616
#include "Symbols.h"
1717
#include "lld/Common/DWARF.h"
18-
#include "llvm-c/lto.h"
1918
#include "llvm/ADT/SmallVector.h"
2019
#include "llvm/ADT/Twine.h"
2120
#include "llvm/BinaryFormat/COFF.h"
@@ -33,14 +32,11 @@
3332
#include "llvm/Support/Casting.h"
3433
#include "llvm/Support/Endian.h"
3534
#include "llvm/Support/Error.h"
36-
#include "llvm/Support/ErrorOr.h"
3735
#include "llvm/Support/FileSystem.h"
3836
#include "llvm/Support/Path.h"
39-
#include "llvm/Target/TargetOptions.h"
4037
#include "llvm/TargetParser/Triple.h"
4138
#include <cstring>
4239
#include <optional>
43-
#include <system_error>
4440
#include <utility>
4541

4642
using namespace llvm;

lld/COFF/LTO.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,19 @@
1717
#include "lld/Common/Strings.h"
1818
#include "lld/Common/TargetOptionsCommandFlags.h"
1919
#include "llvm/ADT/STLExtras.h"
20-
#include "llvm/ADT/SmallString.h"
2120
#include "llvm/ADT/StringRef.h"
2221
#include "llvm/ADT/Twine.h"
2322
#include "llvm/Bitcode/BitcodeWriter.h"
2423
#include "llvm/IR/DiagnosticPrinter.h"
2524
#include "llvm/LTO/Config.h"
2625
#include "llvm/LTO/LTO.h"
27-
#include "llvm/Object/SymbolicFile.h"
2826
#include "llvm/Support/Caching.h"
2927
#include "llvm/Support/CodeGen.h"
30-
#include "llvm/Support/Error.h"
31-
#include "llvm/Support/FileSystem.h"
3228
#include "llvm/Support/MemoryBuffer.h"
3329
#include "llvm/Support/raw_ostream.h"
34-
#include <algorithm>
3530
#include <cstddef>
3631
#include <memory>
3732
#include <string>
38-
#include <system_error>
3933
#include <vector>
4034

4135
using namespace llvm;

lld/COFF/MapFile.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "SymbolTable.h"
3333
#include "Symbols.h"
3434
#include "Writer.h"
35-
#include "lld/Common/ErrorHandler.h"
3635
#include "lld/Common/Timer.h"
3736
#include "llvm/Support/Parallel.h"
3837
#include "llvm/Support/Path.h"

lld/COFF/MarkLive.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
#include "Chunks.h"
1111
#include "Symbols.h"
1212
#include "lld/Common/Timer.h"
13-
#include "llvm/ADT/STLExtras.h"
1413
#include "llvm/Support/TimeProfiler.h"
15-
#include <vector>
1614

1715
namespace lld::coff {
1816

0 commit comments

Comments
 (0)