This is an archive of the discontinued LLVM Phabricator instance.

Remove the ThreadLocal template from LLVM.
ClosedPublic

Authored by resistor on Jan 9 2023, 7:49 PM.

Details

Summary

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.

Diff Detail

Event Timeline

resistor created this revision.Jan 9 2023, 7:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 9 2023, 7:49 PM
resistor requested review of this revision.Jan 9 2023, 7:49 PM
Herald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptJan 9 2023, 7:49 PM
majnemer accepted this revision.Jan 9 2023, 8:00 PM
majnemer added a subscriber: majnemer.

LGTM

llvm/lib/Support/CrashRecoveryContext.cpp
23

nit: Extra space after const

This revision is now accepted and ready to land.Jan 9 2023, 8:00 PM
This revision was landed with ongoing or failed builds.Jan 9 2023, 8:12 PM
This revision was automatically updated to reflect the committed changes.
llvm/lib/Support/Windows/ThreadLocal.inc