summaryrefslogtreecommitdiff
path: root/flang/tools
diff options
context:
space:
mode:
authorArchibald Elliott <archibald.elliott@arm.com>2023-02-10 09:59:46 +0000
committerArchibald Elliott <archibald.elliott@arm.com>2023-02-10 09:59:46 +0000
commitd768bf994f508d7eaf9541a568be3d71096febf5 (patch)
treebe41cbae09e0493dd3699f8d93a0bf98689452bd /flang/tools
parent4ad8f7a189570dc2560d0efdd05e6a8153313808 (diff)
downloadllvm-d768bf994f508d7eaf9541a568be3d71096febf5.tar.gz
[NFC][TargetParser] Replace uses of llvm/Support/Host.h
The forwarding header is left in place because of its use in `polly/lib/External/isl/interface/extract_interface.cc`, but I have added a GCC warning about the fact it is deprecated, because it is used in `isl` from where it is included by Polly.
Diffstat (limited to 'flang/tools')
-rw-r--r--flang/tools/bbc/bbc.cpp2
-rw-r--r--flang/tools/flang-driver/driver.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/flang/tools/bbc/bbc.cpp b/flang/tools/bbc/bbc.cpp
index 236e7319137c..9a39c5b2cea4 100644
--- a/flang/tools/bbc/bbc.cpp
+++ b/flang/tools/bbc/bbc.cpp
@@ -51,7 +51,6 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/FileSystem.h"
-#include "llvm/Support/Host.h"
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
@@ -59,6 +58,7 @@
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/ToolOutputFile.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/TargetParser/Host.h"
#include "llvm/TargetParser/Triple.h"
//===----------------------------------------------------------------------===//
diff --git a/flang/tools/flang-driver/driver.cpp b/flang/tools/flang-driver/driver.cpp
index 5c0342e45ec3..a4c57f8b1ab2 100644
--- a/flang/tools/flang-driver/driver.cpp
+++ b/flang/tools/flang-driver/driver.cpp
@@ -26,9 +26,9 @@
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Support/CommandLine.h"
-#include "llvm/Support/Host.h"
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/VirtualFileSystem.h"
+#include "llvm/TargetParser/Host.h"
using llvm::StringRef;