summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2018-02-01 10:01:25 +0000
committerSam McCall <sam.mccall@gmail.com>2018-02-01 10:01:25 +0000
commite0a3dec9fbf62ecb891f61e0f773e8e38180ea0c (patch)
treef41c796e29c89ed020d3df2fca00404efabc78b5 /clang/lib/CodeGen/CodeGenFunction.cpp
parent705e26a24310d046bd6c3d29b72f30af045e4a1f (diff)
downloadbcm5719-llvm-e0a3dec9fbf62ecb891f61e0f773e8e38180ea0c.tar.gz
bcm5719-llvm-e0a3dec9fbf62ecb891f61e0f773e8e38180ea0c.zip
[clangd] Use pthread instead of thread_local to support more runtimes.
Summary: thread_local has nice syntax and semantics, but requires __cxa_thread_atexit, and some not-ancient runtime libraries don't provide it. The clang-x86_64-linux-selfhost-modules buildbot is one example :-) It works on windows, and the other platforms clang-tools-extra supports should all have the relevant pthread API. So we just use that if it's available, falling back to thread_local (so if a platform has neither, we'll fail to link). The fallback should really be the other way, that would require cmake changes. Reviewers: ilya-biryukov, bkramer Subscribers: klimek, jkorous-apple, ioeric, cfe-commits Differential Revision: https://reviews.llvm.org/D42742 llvm-svn: 323949
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud