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

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


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

The header file has been deprecated since:

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


>From 47e6c7b4c1b26e93f19ee70266991248cc336cb5 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sun, 3 Dec 2023 13:40:42 -0800
Subject: [PATCH] [Support] Remove llvm/Support/Host.h

The header file has been deprecated since:

  commit f09cf34d00625e57dea5317a3ac0412c07292148
  Author: Archibald Elliott <archibald.elliott at arm.com>
  Date:   Tue Dec 20 10:24:02 2022 +0000
---
 llvm/include/llvm/Support/Host.h               | 18 ------------------
 llvm/include/module.modulemap                  |  3 ---
 .../isl/interface/extract_interface.cc         |  2 +-
 3 files changed, 1 insertion(+), 22 deletions(-)
 delete mode 100644 llvm/include/llvm/Support/Host.h

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>



More information about the llvm-commits mailing list