projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98efbf1
)
Add specific header for MSVC to be able to build with LLVM_ENABLE_THREADS=OFF
author
Mehdi Amini
<mehdi.amini@apple.com>
Tue, 15 Dec 2015 02:32:03 +0000
(
02:32
+0000)
committer
Mehdi Amini
<mehdi.amini@apple.com>
Tue, 15 Dec 2015 02:32:03 +0000
(
02:32
+0000)
Follow-up to the ThreadPool library
From: Mehdi Amini <mehdi.amini@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255604
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/ThreadPool.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/ThreadPool.h
b/include/llvm/Support/ThreadPool.h
index 56265499c3e5f035e70c457bcc2cbec555303d48..16f287e701dfdf8ee9fcfaf00361b6fb66ffd028 100644
(file)
--- a/
include/llvm/Support/ThreadPool.h
+++ b/
include/llvm/Support/ThreadPool.h
@@
-24,6
+24,12
@@
#include <queue>
#include <utility>
+#ifdef _MSC_VER
+// concrt.h depends on eh.h for __uncaught_exception declaration
+// even if we disable exceptions.
+#include <eh.h>
+#endif
+
namespace llvm {
/// A ThreadPool for asynchronous parallel execution on a defined number of