diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Support/ThreadPool.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Support/ThreadPool.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/lib/Support/ThreadPool.cpp b/contrib/llvm-project/llvm/lib/Support/ThreadPool.cpp index 54ea84d4bd6d..9f92ae1c7a7c 100644 --- a/contrib/llvm-project/llvm/lib/Support/ThreadPool.cpp +++ b/contrib/llvm-project/llvm/lib/Support/ThreadPool.cpp @@ -13,8 +13,12 @@ #include "llvm/Support/ThreadPool.h" #include "llvm/Config/llvm-config.h" + +#if LLVM_ENABLE_THREADS #include "llvm/Support/Threading.h" +#else #include "llvm/Support/raw_ostream.h" +#endif using namespace llvm; @@ -117,6 +121,10 @@ void ThreadPool::wait() { } } +bool ThreadPool::isWorkerThread() const { + report_fatal_error("LLVM compiled without multithreading"); +} + ThreadPool::~ThreadPool() { wait(); } #endif |