summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kilroy <kilroyd@googlemail.com>2023-03-17 20:16:37 +0000
committerGitHub <noreply@github.com>2023-03-17 21:16:37 +0100
commitf3798f1b19fc51a61d1b74fa09da4d03c130aa19 (patch)
treefdc5fe49c5f35c11bbb4318c0dbdcc5517d80c47
parentb26c5bf40935e1af763bf0466d9e9e0622ddb6e5 (diff)
[clang compat] Use new include path for Host.h
The header was moved from llvm/Support/ to llvm/TargetParser/ as part of a breaking change in LLVM commit: https://github.com/llvm/llvm-project/commit/f09cf34d00625e57dea5317a3ac0412c07292148 A warning was subsequently added in commit: https://github.com/llvm/llvm-project/commit/a9329a96ada3 Use the new location. Also re-sort headers alphabetically.
-rw-r--r--iwyu_driver.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/iwyu_driver.cc b/iwyu_driver.cc
index 031b292..85e651e 100644
--- a/iwyu_driver.cc
+++ b/iwyu_driver.cc
@@ -21,12 +21,12 @@
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/STLExtras.h"
-#include "llvm/TargetParser/Triple.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Support/ErrorOr.h"
-#include "llvm/Support/Host.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
+#include "llvm/TargetParser/Host.h"
+#include "llvm/TargetParser/Triple.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/DiagnosticFrontend.h"
#include "clang/Driver/Compilation.h"