Remove the ThreadLocal template from LLVM.
authorOwen Anderson <resistor@mac.com>
Tue, 10 Jan 2023 03:48:20 +0000 (20:48 -0700)
committerOwen Anderson <resistor@mac.com>
Wed, 11 Jan 2023 04:07:52 +0000 (21:07 -0700)
commite4e0f933079859c12983f955e7ee66ba4fb39932
tree6fe0c9f3cc7310ad2d052ac7e5694d64af7cc87f
parent1e0f814e73094d57f9576bdca8fa03fdf02940fb
Remove the ThreadLocal template from LLVM.

This has been obsoleted by C++ thread_local for a long time.
As far as I know, Xcode was the last supported toolchain to add
support for C++ thread_local in 2016.

As a precaution, use LLVM_THREAD_LOCAL which provides even greater
backwards compatibility, allowing this to function even pre-C++11
versions of GCC.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D141349
clang-tools-extra/clangd/support/ThreadCrashReporter.cpp
llvm/include/llvm/Support/ThreadLocal.h [deleted file]
llvm/lib/Support/CMakeLists.txt
llvm/lib/Support/CrashRecoveryContext.cpp
llvm/lib/Support/ThreadLocal.cpp [deleted file]
llvm/lib/Support/Unix/ThreadLocal.inc [deleted file]
llvm/lib/Support/Windows/ThreadLocal.inc [deleted file]
llvm/unittests/Support/CMakeLists.txt
llvm/unittests/Support/ThreadLocalTest.cpp [deleted file]
mlir/include/mlir/Support/ThreadLocalCache.h