Skip to content

Commit 7396f72

Browse files
committed
[DebugInfo] Remove some unused includes. NFCI.
Mainly removing a lot of <vector> includes from files that don't explicitly use std::vector
1 parent 526c42e commit 7396f72

13 files changed

+5
-19
lines changed

llvm/include/llvm/DebugInfo/CodeView/AppendingTypeTableBuilder.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
#include "llvm/DebugInfo/CodeView/TypeCollection.h"
1717
#include "llvm/DebugInfo/CodeView/TypeIndex.h"
1818
#include "llvm/Support/Allocator.h"
19-
#include <cassert>
2019
#include <cstdint>
2120
#include <memory>
22-
#include <vector>
2321

2422
namespace llvm {
2523
namespace codeview {

llvm/include/llvm/DebugInfo/CodeView/GlobalTypeTableBuilder.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <cassert>
2222
#include <cstdint>
2323
#include <memory>
24-
#include <vector>
2524

2625
namespace llvm {
2726
namespace codeview {

llvm/include/llvm/DebugInfo/CodeView/MergingTypeTableBuilder.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
1818
#include "llvm/DebugInfo/CodeView/TypeHashing.h"
1919
#include "llvm/DebugInfo/CodeView/TypeIndex.h"
2020
#include "llvm/Support/Allocator.h"
21-
#include <cassert>
2221
#include <cstdint>
2322
#include <memory>
24-
#include <vector>
2523

2624
namespace llvm {
2725
namespace codeview {

llvm/include/llvm/DebugInfo/CodeView/SymbolSerializer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "llvm/Support/BinaryStreamWriter.h"
2121
#include "llvm/Support/Error.h"
2222
#include <cstdint>
23-
#include <vector>
2423

2524
namespace llvm {
2625
namespace codeview {

llvm/include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
#define LLVM_DEBUGINFO_DWARFDEBUGRNGLISTS_H
1111

1212
#include "llvm/ADT/Optional.h"
13+
#include "llvm/ADT/STLExtras.h"
1314
#include "llvm/BinaryFormat/Dwarf.h"
1415
#include "llvm/DebugInfo/DIContext.h"
1516
#include "llvm/DebugInfo/DWARF/DWARFDataExtractor.h"
1617
#include "llvm/DebugInfo/DWARF/DWARFDebugRangeList.h"
1718
#include "llvm/DebugInfo/DWARF/DWARFListTable.h"
1819
#include <cstdint>
19-
#include <map>
20-
#include <vector>
2120

2221
namespace llvm {
2322

llvm/include/llvm/DebugInfo/GSYM/FunctionInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
#include "llvm/DebugInfo/GSYM/LookupResult.h"
1616
#include "llvm/DebugInfo/GSYM/Range.h"
1717
#include "llvm/DebugInfo/GSYM/StringTable.h"
18+
#include <cstdint>
1819
#include <tuple>
19-
#include <vector>
2020

2121
namespace llvm {
2222
class raw_ostream;
23+
2324
namespace gsym {
2425

2526
class GsymReader;

llvm/include/llvm/DebugInfo/PDB/Native/DbiModuleDescriptor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include "llvm/Support/BinaryStreamRef.h"
1616
#include "llvm/Support/Error.h"
1717
#include <cstdint>
18-
#include <vector>
1918

2019
namespace llvm {
2120

llvm/include/llvm/DebugInfo/PDB/Native/PDBFileBuilder.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#define LLVM_DEBUGINFO_PDB_RAW_PDBFILEBUILDER_H
1111

1212
#include "llvm/ADT/ArrayRef.h"
13-
#include "llvm/ADT/BitVector.h"
1413
#include "llvm/ADT/Optional.h"
14+
#include "llvm/ADT/SmallVector.h"
1515
#include "llvm/DebugInfo/PDB/Native/NamedStreamMap.h"
1616
#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
1717
#include "llvm/DebugInfo/PDB/Native/PDBStringTableBuilder.h"
@@ -21,9 +21,7 @@
2121
#include "llvm/Support/Endian.h"
2222
#include "llvm/Support/Error.h"
2323
#include "llvm/Support/MemoryBuffer.h"
24-
2524
#include <memory>
26-
#include <vector>
2725

2826
namespace llvm {
2927
namespace msf {

llvm/include/llvm/DebugInfo/PDB/Native/PDBStringTable.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "llvm/Support/Endian.h"
1818
#include "llvm/Support/Error.h"
1919
#include <cstdint>
20-
#include <vector>
2120

2221
namespace llvm {
2322
class BinaryStreamReader;

llvm/include/llvm/DebugInfo/PDB/Native/PDBStringTableBuilder.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
#ifndef LLVM_DEBUGINFO_PDB_RAW_PDBSTRINGTABLEBUILDER_H
1414
#define LLVM_DEBUGINFO_PDB_RAW_PDBSTRINGTABLEBUILDER_H
1515

16-
#include "llvm/ADT/DenseMap.h"
1716
#include "llvm/ADT/StringRef.h"
1817
#include "llvm/DebugInfo/CodeView/DebugStringTableSubsection.h"
1918
#include "llvm/Support/Error.h"
20-
#include <vector>
19+
#include <cstdint>
2120

2221
namespace llvm {
2322
class BinaryStreamWriter;

llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <cassert>
1616
#include <cstdint>
1717
#include <set>
18-
#include <vector>
1918

2019
using namespace llvm;
2120

llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <cinttypes>
2626
#include <cstdint>
2727
#include <string>
28-
#include <vector>
2928

3029
using namespace llvm;
3130
using namespace dwarf;

llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp

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

99
#include "llvm/DebugInfo/PDB/Native/PDBFileBuilder.h"
10-
#include "llvm/ADT/BitVector.h"
1110
#include "llvm/DebugInfo/MSF/MSFBuilder.h"
1211
#include "llvm/DebugInfo/PDB/Native/DbiStream.h"
1312
#include "llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h"

0 commit comments

Comments
 (0)