Support: Support LLVM_ENABLE_THREADS=0 in llvm/Support/thread.h.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 31 Aug 2015 00:09:01 +0000 (00:09 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 31 Aug 2015 00:09:01 +0000 (00:09 +0000)
commitae55d356be840aab2898f47a9c704e7a542f76c2
treec1cca930c8dbd5735f81d7fa1c56e7b27a67dafd
parentfdc7c7ad10aded7dbd3bb2ce85f194efa5d08c06
Support: Support LLVM_ENABLE_THREADS=0 in llvm/Support/thread.h.

Specifically, the header now provides llvm::thread, which is either a
typedef of std::thread or a replacement that calls the function synchronously
depending on the value of LLVM_ENABLE_THREADS.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246402 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/thread.h
lib/CodeGen/ParallelCG.cpp