[polly] [llvm] [Support] Remove llvm/Support/Host.h (PR #74261)

via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 3 14:57:45 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-support

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>

The header file has been deprecated since:

  commit f09cf34d00625e57dea5317a3ac0412c07292148
  Author: Archibald Elliott <archibald.elliott@<!-- -->arm.com>
  Date:   Tue Dec 20 10:24:02 2022 +0000


---
Full diff: https://github.com/llvm/llvm-project/pull/74261.diff


3 Files Affected:

- (removed) llvm/include/llvm/Support/Host.h (-18) 
- (modified) llvm/include/module.modulemap (-3) 
- (modified) polly/lib/External/isl/interface/extract_interface.cc (+1-1) 


``````````diff
diff --git a/llvm/include/llvm/Support/Host.h b/llvm/include/llvm/Support/Host.h
deleted file mode 100644
index 113a252a12de9..0000000000000
--- a/llvm/include/llvm/Support/Host.h
+++ /dev/null
@@ -1,18 +0,0 @@
-//===-- llvm/Support/Host.h -------------------------------------*- C++ -*-===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-///
-/// \file
-/// This header is deprecated in favour of `llvm/TargetParser/Host.h`.
-///
-//===----------------------------------------------------------------------===//
-
-#ifdef __GNUC__
-#pragma GCC warning                                                            \
-    "This header is deprecated, please use llvm/TargetParser/Host.h"
-#endif
-#include "llvm/TargetParser/Host.h"
diff --git a/llvm/include/module.modulemap b/llvm/include/module.modulemap
index 4c2ba437edb9f..8930fa8c087cf 100644
--- a/llvm/include/module.modulemap
+++ b/llvm/include/module.modulemap
@@ -380,9 +380,6 @@ module LLVM_Utils {
     umbrella "llvm/Support"
     module * { export * }
 
-    // Exclude this; deprecated.
-    exclude header "llvm/Support/Host.h"
-
     // Exclude this; it should only be used on Windows.
     exclude header "llvm/Support/Windows/WindowsSupport.h"
 
diff --git a/polly/lib/External/isl/interface/extract_interface.cc b/polly/lib/External/isl/interface/extract_interface.cc
index b94847c59035e..9bd20b0c72c6c 100644
--- a/polly/lib/External/isl/interface/extract_interface.cc
+++ b/polly/lib/External/isl/interface/extract_interface.cc
@@ -47,8 +47,8 @@
 #endif
 #include <llvm/Support/raw_ostream.h>
 #include <llvm/Support/CommandLine.h>
-#include <llvm/Support/Host.h>
 #include <llvm/Support/ManagedStatic.h>
+#include <llvm/TargetParser/Host.h>
 #include <clang/AST/ASTContext.h>
 #include <clang/AST/ASTConsumer.h>
 #include <clang/Basic/Builtins.h>

``````````

</details>


https://github.com/llvm/llvm-project/pull/74261


More information about the llvm-commits mailing list