Skip to content

Commit 228f668

Browse files
[llvm] Remove unused includes (NFC) (#142733)
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 ed42e17 commit 228f668

Some content is hidden

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

50 files changed

+2
-84
lines changed

llvm/lib/BinaryFormat/MsgPackReader.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "llvm/BinaryFormat/MsgPackReader.h"
1515
#include "llvm/BinaryFormat/MsgPack.h"
1616
#include "llvm/Support/Endian.h"
17-
#include "llvm/Support/MathExtras.h"
1817

1918
using namespace llvm;
2019
using namespace llvm::support;

llvm/lib/CGData/CodeGenData.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include "llvm/Object/ObjectFile.h"
1919
#include "llvm/Support/Caching.h"
2020
#include "llvm/Support/CommandLine.h"
21-
#include "llvm/Support/FileSystem.h"
22-
#include "llvm/Support/Path.h"
2321
#include "llvm/Support/WithColor.h"
2422

2523
#define DEBUG_TYPE "cg-data"

llvm/lib/DWARFLinker/Classic/DWARFStreamer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "llvm/MC/MCObjectWriter.h"
1919
#include "llvm/MC/MCSection.h"
2020
#include "llvm/MC/MCStreamer.h"
21-
#include "llvm/MC/MCSubtargetInfo.h"
2221
#include "llvm/MC/MCTargetOptions.h"
2322
#include "llvm/MC/MCTargetOptionsCommandFlags.h"
2423
#include "llvm/MC/TargetRegistry.h"

llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include "llvm/DWARFLinker/Utils.h"
1616
#include "llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h"
1717
#include "llvm/DebugInfo/DWARF/DWARFDebugMacro.h"
18-
#include "llvm/Support/DJB.h"
1918
#include "llvm/Support/FileSystem.h"
2019
#include "llvm/Support/FormatVariadic.h"
2120
#include "llvm/Support/Path.h"

llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "DWARFLinkerImpl.h"
10-
#include "DIEGenerator.h"
1110
#include "DependencyTracker.h"
1211
#include "llvm/DWARFLinker/Utils.h"
1312
#include "llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h"

llvm/lib/DWARFLinker/Parallel/DWARFLinkerTypeUnit.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "DWARFLinkerTypeUnit.h"
1010
#include "DIEGenerator.h"
11-
#include "DWARFEmitterImpl.h"
1211
#include "llvm/Support/LEB128.h"
1312

1413
using namespace llvm;

llvm/lib/DWARFLinker/Parallel/OutputSections.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "OutputSections.h"
1010
#include "DWARFLinkerCompileUnit.h"
1111
#include "DWARFLinkerTypeUnit.h"
12-
#include "llvm/ADT/StringSwitch.h"
1312

1413
using namespace llvm;
1514
using namespace dwarf_linker;

llvm/lib/DWARFLinker/Parallel/SyntheticTypeNameBuilder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "DWARFLinkerCompileUnit.h"
1111
#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"
1212
#include "llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h"
13-
#include "llvm/Support/ScopedPrinter.h"
1413

1514
using namespace llvm;
1615
using namespace dwarf_linker;

llvm/lib/DWP/DWP.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include "llvm/MC/MCTargetOptionsCommandFlags.h"
1919
#include "llvm/Object/Decompressor.h"
2020
#include "llvm/Object/ELFObjectFile.h"
21-
#include "llvm/Support/CommandLine.h"
22-
#include "llvm/Support/MemoryBuffer.h"
2321
#include <limits>
2422

2523
using namespace llvm;

llvm/lib/DebugInfo/GSYM/CallSiteInfo.cpp

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

99
#include "llvm/DebugInfo/GSYM/CallSiteInfo.h"
10-
#include "llvm/ADT/CachedHashString.h"
1110
#include "llvm/DebugInfo/GSYM/FileWriter.h"
1211
#include "llvm/DebugInfo/GSYM/FunctionInfo.h"
1312
#include "llvm/DebugInfo/GSYM/GsymCreator.h"
@@ -16,9 +15,7 @@
1615
#include "llvm/Support/YAMLParser.h"
1716
#include "llvm/Support/YAMLTraits.h"
1817
#include "llvm/Support/raw_ostream.h"
19-
#include <fstream>
2018
#include <string>
21-
#include <unordered_map>
2219
#include <vector>
2320

2421
using namespace llvm;

0 commit comments

Comments
 (0)