[Support] Replace Windows __declspec(thread) with thread_local for LLVM_THREAD_LOCAL
authorRussell Gallop <russell.gallop@sony.com>
Wed, 8 Jan 2020 14:48:21 +0000 (14:48 +0000)
committerRussell Gallop <russell.gallop@sony.com>
Wed, 15 Jan 2020 11:15:25 +0000 (11:15 +0000)
commit884a65af5ceebce76519749ed6eb9a86d0596771
treef6795c88b6f57ba3e36d67ec07cab1af001bb8eb
parent93a4dede3a5ecb110dd7cdfd7faa48e3448844d8
[Support] Replace Windows __declspec(thread) with thread_local for LLVM_THREAD_LOCAL

Windows minimum host tools version is now VS2017, which supports C++11
thread_local so use this for LLVM_THREAD_LOCAL instead of
declspec(thread). According to [1], thread_local is implemented with
declspec(thread) so this should be NFC.

[1] https://docs.microsoft.com/en-us/cpp/cpp/thread?view=vs-2017

Differential Revision: https://reviews.llvm.org/D72399
llvm/include/llvm/Support/Compiler.h