Skip to content

Commit 35fd79a

Browse files
committed
NFC: Import llvm/TargetParser/Host.h instead of llvm/Support/Host.h.
1 parent 47803aa commit 35fd79a

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

lib/Driver/Driver.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
#include "llvm/Support/Debug.h"
5252
#include "llvm/Support/ErrorHandling.h"
5353
#include "llvm/Support/FileSystem.h"
54-
#include "llvm/Support/Host.h"
5554
#include "llvm/Support/MD5.h"
5655
#include "llvm/Support/Path.h"
5756
#include "llvm/Support/PrettyStackTrace.h"
5857
#include "llvm/Support/raw_ostream.h"
58+
#include "llvm/TargetParser/Host.h"
5959

6060
#include "CompilationRecord.h"
6161

lib/Driver/FrontendUtil.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#include "llvm/ADT/DenseSet.h"
2222
#include "llvm/Option/ArgList.h"
2323
#include "llvm/Support/CommandLine.h"
24-
#include "llvm/Support/Host.h"
2524
#include "llvm/Support/StringSaver.h"
25+
#include "llvm/TargetParser/Host.h"
2626

2727
using namespace swift;
2828
using namespace swift::driver;

lib/DriverTool/driver.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@
3232
#include "swift/FrontendTool/FrontendTool.h"
3333
#include "swift/DriverTool/DriverTool.h"
3434
#include "llvm/ADT/SmallVector.h"
35-
#include "llvm/TargetParser/Triple.h"
3635
#include "llvm/Support/CommandLine.h"
3736
#include "llvm/Support/ConvertUTF.h"
3837
#include "llvm/Support/Errno.h"
3938
#include "llvm/Support/FileSystem.h"
40-
#include "llvm/Support/Host.h"
39+
#include "llvm/TargetParser/Host.h"
4140
#include "llvm/Support/ManagedStatic.h"
4241
#include "llvm/Support/Path.h"
4342
#include "llvm/Support/PrettyStackTrace.h"
@@ -47,6 +46,8 @@
4746
#include "llvm/Support/StringSaver.h"
4847
#include "llvm/Support/TargetSelect.h"
4948
#include "llvm/Support/raw_ostream.h"
49+
#include "llvm/TargetParser/Host.h"
50+
#include "llvm/TargetParser/Triple.h"
5051

5152
#include <memory>
5253
#include <stdlib.h>

lib/DriverTool/swift_llvm_opt_main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
#include "llvm/MC/TargetRegistry.h"
5757
#include "llvm/Support/Debug.h"
5858
#include "llvm/Support/FileSystem.h"
59-
#include "llvm/Support/Host.h"
6059
#include "llvm/Support/ManagedStatic.h"
6160
#include "llvm/Support/PluginLoader.h"
6261
#include "llvm/Support/PrettyStackTrace.h"
@@ -66,6 +65,7 @@
6665
#include "llvm/Support/TargetSelect.h"
6766
#include "llvm/Support/ToolOutputFile.h"
6867
#include "llvm/Target/TargetMachine.h"
68+
#include "llvm/TargetParser/Host.h"
6969
#include "llvm/Transforms/Scalar/LoopPassManager.h"
7070

7171
using namespace swift;

unittests/AST/TestContext.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "swift/Basic/SourceManager.h"
1919
#include "swift/SymbolGraphGen/SymbolGraphOptions.h"
2020

21-
#include "llvm/Support/Host.h"
21+
#include "llvm/TargetParser/Host.h"
2222

2323
namespace swift {
2424
namespace unittest {

unittests/DependencyScan/ModuleDeps.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#include "ScanFixture.h"
14-
#include "swift/Basic/Platform.h"
1514
#include "swift/Basic/Defer.h"
16-
#include "llvm/TargetParser/Triple.h"
17-
#include "llvm/Support/Host.h"
15+
#include "swift/Basic/Platform.h"
1816
#include "llvm/Support/Path.h"
1917
#include "llvm/Support/raw_ostream.h"
18+
#include "llvm/TargetParser/Host.h"
19+
#include "llvm/TargetParser/Triple.h"
2020
#include "gtest/gtest.h"
2121
#include <string>
2222

0 commit comments

Comments
 (0)