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

Owen Anderson via All-commits all-commits at lists.llvm.org
Mon Jan 9 20:12:40 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 54d78b639b9c18b42abd4fac5c6e76105f06b3ef
      https://github.com/llvm/llvm-project/commit/54d78b639b9c18b42abd4fac5c6e76105f06b3ef
  Author: Owen Anderson <resistor at mac.com>
  Date:   2023-01-09 (Mon, 09 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: majnemer

Differential Revision: https://reviews.llvm.org/D141347




More information about the All-commits mailing list