[llvm] Remove dependence on <ciso646> (PR #73273)

Michael Kenzel via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 23 18:13:50 PST 2023


https://github.com/michael-kenzel updated https://github.com/llvm/llvm-project/pull/73273

>From 230d03c9ac4cd8a5db637ce22c145a6ce2d20084 Mon Sep 17 00:00:00 2001
From: Michael Kenzel <michael.kenzel at gmail.com>
Date: Fri, 24 Nov 2023 03:00:56 +0100
Subject: [PATCH] Remove dependence on <ciso646>

---
 llvm/include/llvm/Support/Threading.h    | 2 +-
 llvm/lib/DebugInfo/GSYM/LookupResult.cpp | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/llvm/include/llvm/Support/Threading.h b/llvm/include/llvm/Support/Threading.h
index ba6c531ab4db214..13d21b0f3ea1127 100644
--- a/llvm/include/llvm/Support/Threading.h
+++ b/llvm/include/llvm/Support/Threading.h
@@ -18,8 +18,8 @@
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Config/llvm-config.h" // for LLVM_ON_UNIX
 #include "llvm/Support/Compiler.h"
-#include <ciso646> // So we can check the C++ standard lib macros.
 #include <optional>
+#include <version>
 
 #if defined(_MSC_VER)
 // MSVC's call_once implementation worked since VS 2015, which is the minimum
diff --git a/llvm/lib/DebugInfo/GSYM/LookupResult.cpp b/llvm/lib/DebugInfo/GSYM/LookupResult.cpp
index 00a5b1bbfaa5fba..0a09feefbd7503f 100644
--- a/llvm/lib/DebugInfo/GSYM/LookupResult.cpp
+++ b/llvm/lib/DebugInfo/GSYM/LookupResult.cpp
@@ -12,7 +12,6 @@
 #include "llvm/Support/Format.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
-#include <ciso646>
 
 using namespace llvm;
 using namespace gsym;



More information about the llvm-commits mailing list