Skip to content

Commit 213aea4

Browse files
committed
Remove unused Endian.h includes, NFC
Mainly avoids including Host.h everywhere: $ diff -u <(sort thedeps-before.txt) <(sort thedeps-after.txt) \ | grep '^[-+] ' | sort | uniq -c | sort -nr 3141 - /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/Host.h
1 parent 47359fb commit 213aea4

File tree

18 files changed

+21
-5
lines changed

18 files changed

+21
-5
lines changed

clang/lib/Driver/Distro.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
#include "llvm/ADT/SmallVector.h"
1212
#include "llvm/ADT/StringRef.h"
1313
#include "llvm/ADT/StringSwitch.h"
14+
#include "llvm/ADT/Triple.h"
1415
#include "llvm/Support/ErrorOr.h"
16+
#include "llvm/Support/Host.h"
1517
#include "llvm/Support/MemoryBuffer.h"
16-
#include "llvm/ADT/Triple.h"
1718

1819
using namespace clang::driver;
1920
using namespace clang;

clang/lib/Driver/Driver.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
#include "ToolChains/NaCl.h"
3939
#include "ToolChains/NetBSD.h"
4040
#include "ToolChains/OpenBSD.h"
41-
#include "ToolChains/PS4CPU.h"
4241
#include "ToolChains/PPCLinux.h"
42+
#include "ToolChains/PS4CPU.h"
4343
#include "ToolChains/RISCVToolchain.h"
4444
#include "ToolChains/Solaris.h"
4545
#include "ToolChains/TCE.h"
@@ -71,6 +71,7 @@
7171
#include "llvm/Support/ErrorHandling.h"
7272
#include "llvm/Support/FileSystem.h"
7373
#include "llvm/Support/FormatVariadic.h"
74+
#include "llvm/Support/Host.h"
7475
#include "llvm/Support/Path.h"
7576
#include "llvm/Support/PrettyStackTrace.h"
7677
#include "llvm/Support/Process.h"

clang/lib/Driver/ToolChains/Cuda.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "clang/Driver/Options.h"
1919
#include "llvm/Option/ArgList.h"
2020
#include "llvm/Support/FileSystem.h"
21+
#include "llvm/Support/Host.h"
2122
#include "llvm/Support/Path.h"
2223
#include "llvm/Support/Process.h"
2324
#include "llvm/Support/Program.h"

clang/lib/Tooling/ExpandResponseFilesCompilationDatabase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "llvm/Support/CommandLine.h"
1313
#include "llvm/Support/ConvertUTF.h"
1414
#include "llvm/Support/ErrorOr.h"
15+
#include "llvm/Support/Host.h"
1516
#include "llvm/Support/MemoryBuffer.h"
1617
#include "llvm/Support/Path.h"
1718
#include "llvm/Support/StringSaver.h"

clang/tools/driver/cc1gen_reproducer_main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "llvm/ADT/ArrayRef.h"
1919
#include "llvm/ADT/STLExtras.h"
2020
#include "llvm/Support/FileSystem.h"
21+
#include "llvm/Support/Host.h"
2122
#include "llvm/Support/TargetSelect.h"
2223
#include "llvm/Support/VirtualFileSystem.h"
2324
#include "llvm/Support/YAMLTraits.h"

clang/unittests/AST/StructuralEquivalenceTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#include "clang/AST/ASTContext.h"
2-
#include "clang/ASTMatchers/ASTMatchers.h"
32
#include "clang/AST/ASTStructuralEquivalence.h"
3+
#include "clang/ASTMatchers/ASTMatchers.h"
44
#include "clang/Frontend/ASTUnit.h"
55
#include "clang/Tooling/Tooling.h"
6+
#include "llvm/Support/Host.h"
67

78
#include "Language.h"
89
#include "DeclMatcher.h"

clang/unittests/CodeGen/TBAAMetadataTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "llvm/IR/Constants.h"
1919
#include "llvm/IR/LLVMContext.h"
2020
#include "llvm/IR/Module.h"
21+
#include "llvm/Support/Host.h"
2122
#include "llvm/Support/MemoryBuffer.h"
2223
#include "gtest/gtest.h"
2324
#include <memory>

clang/unittests/Driver/DistroTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#include "clang/Driver/Distro.h"
14+
#include "llvm/Support/Host.h"
1415
#include "llvm/Support/VirtualFileSystem.h"
1516
#include "llvm/Support/raw_ostream.h"
1617
#include "gtest/gtest.h"
18+
1719
using namespace clang;
1820
using namespace clang::driver;
1921

clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaExpr.cpp

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

99
#include "TestVisitor.h"
10+
#include "llvm/Support/Host.h"
1011
#include <stack>
1112

1213
using namespace clang;

lld/ELF/DriverUtils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "llvm/Option/Option.h"
2424
#include "llvm/Support/CommandLine.h"
2525
#include "llvm/Support/FileSystem.h"
26+
#include "llvm/Support/Host.h"
2627
#include "llvm/Support/Path.h"
2728
#include "llvm/Support/Process.h"
2829

0 commit comments

Comments
 (0)