[builtins] Implement emulated TLS on Windows.
authorFrederich Munch <colsebas@hotmail.com>
Sat, 22 Apr 2017 18:45:17 +0000 (18:45 +0000)
committerFrederich Munch <colsebas@hotmail.com>
Sat, 22 Apr 2017 18:45:17 +0000 (18:45 +0000)
commit5de7f2d7b8e96dc6c243033ccd32685d9ac30d4c
tree0a5ee3eb4a8f3ba35fd9274d2f6dd30fef371fe5
parent3b863f8a1ec82f4dd4dfcbc5d24b2da83ff516f3
[builtins] Implement emulated TLS on Windows.

Summary:
LLVM JIT needs to be able to use emulated TLS on all platforms, and this provides a reference one can compile to enable emutls for Linux/Mac/Windows.

Reviewers: chh, howard.hinnant

Reviewed By: chh

Subscribers: mgorny, llvm-commits

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

llvm-svn: 301089
compiler-rt/lib/builtins/CMakeLists.txt
compiler-rt/lib/builtins/emutls.c