Skip to content

Commit 13c3df9

Browse files
[Bitcode] Remove unused includes (NFC) (#141354)
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 47b9837 commit 13c3df9

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
#include <map>
8484
#include <memory>
8585
#include <optional>
86-
#include <set>
8786
#include <string>
8887
#include <system_error>
8988
#include <tuple>

llvm/lib/Bitcode/Reader/MetadataLoader.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "llvm/ADT/Statistic.h"
2222
#include "llvm/ADT/StringRef.h"
2323
#include "llvm/ADT/Twine.h"
24-
#include "llvm/ADT/ilist_iterator.h"
2524
#include "llvm/BinaryFormat/Dwarf.h"
2625
#include "llvm/Bitcode/BitcodeReader.h"
2726
#include "llvm/Bitcode/LLVMBitCodes.h"
@@ -44,7 +43,6 @@
4443
#include "llvm/Support/CommandLine.h"
4544
#include "llvm/Support/Compiler.h"
4645
#include "llvm/Support/ErrorHandling.h"
47-
#include "llvm/Support/type_traits.h"
4846

4947
#include <algorithm>
5048
#include <cassert>
@@ -57,7 +55,6 @@
5755
#include <optional>
5856
#include <string>
5957
#include <tuple>
60-
#include <type_traits>
6158
#include <utility>
6259
#include <vector>
6360
namespace llvm {

llvm/lib/Bitcode/Reader/ValueList.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@
99
#include "ValueList.h"
1010
#include "llvm/IR/Argument.h"
1111
#include "llvm/IR/Constant.h"
12-
#include "llvm/IR/Constants.h"
1312
#include "llvm/IR/GlobalValue.h"
1413
#include "llvm/IR/Instruction.h"
1514
#include "llvm/IR/Type.h"
16-
#include "llvm/IR/User.h"
1715
#include "llvm/IR/Value.h"
1816
#include "llvm/Support/Casting.h"
1917
#include "llvm/Support/Error.h"
20-
#include "llvm/Support/ErrorHandling.h"
21-
#include <cstddef>
2218

2319
using namespace llvm;
2420

llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
#include "llvm/MC/StringTableBuilder.h"
6262
#include "llvm/MC/TargetRegistry.h"
6363
#include "llvm/Object/IRSymtab.h"
64-
#include "llvm/ProfileData/IndexedMemProfData.h"
6564
#include "llvm/ProfileData/MemProf.h"
6665
#include "llvm/ProfileData/MemProfRadixTree.h"
6766
#include "llvm/Support/AtomicOrdering.h"

0 commit comments

Comments
 (0)