[all-commits] [llvm/llvm-project] e4e0f9: Remove the ThreadLocal template from LLVM.

Owen Anderson via All-commits all-commits at lists.llvm.org
Tue Jan 10 20:08:05 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e4e0f933079859c12983f955e7ee66ba4fb39932
      https://github.com/llvm/llvm-project/commit/e4e0f933079859c12983f955e7ee66ba4fb39932
  Author: Owen Anderson <resistor at mac.com>
  Date:   2023-01-10 (Tue, 10 Jan 2023)

  Changed paths:
    M clang-tools-extra/clangd/support/ThreadCrashReporter.cpp
    R llvm/include/llvm/Support/ThreadLocal.h
    M llvm/lib/Support/CMakeLists.txt
    M llvm/lib/Support/CrashRecoveryContext.cpp
    R llvm/lib/Support/ThreadLocal.cpp
    R llvm/lib/Support/Unix/ThreadLocal.inc
    R llvm/lib/Support/Windows/ThreadLocal.inc
    M llvm/unittests/Support/CMakeLists.txt
    R llvm/unittests/Support/ThreadLocalTest.cpp
    M mlir/include/mlir/Support/ThreadLocalCache.h

  Log Message:
  -----------
  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




More information about the All-commits mailing list