[lld] r246219 - Core: Start using llvm/Support/thread.h to work around MSVC <thread> issues.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 14:52:36 PDT 2015


Author: pcc
Date: Thu Aug 27 16:52:36 2015
New Revision: 246219

URL: http://llvm.org/viewvc/llvm-project?rev=246219&view=rev
Log:
Core: Start using llvm/Support/thread.h to work around MSVC <thread> issues.

Modified:
    lld/trunk/include/lld/Core/Parallel.h

Modified: lld/trunk/include/lld/Core/Parallel.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Parallel.h?rev=246219&r1=246218&r2=246219&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/Parallel.h (original)
+++ lld/trunk/include/lld/Core/Parallel.h Thu Aug 27 16:52:36 2015
@@ -14,18 +14,12 @@
 #include "lld/Core/LLVM.h"
 #include "lld/Core/range.h"
 #include "llvm/Support/MathExtras.h"
-
-#ifdef _MSC_VER
-// concrt.h depends on eh.h for __uncaught_exception declaration
-// even if we disable exceptions.
-#include <eh.h>
-#endif
+#include "llvm/Support/thread.h"
 
 #include <algorithm>
 #include <atomic>
 #include <condition_variable>
 #include <mutex>
-#include <thread>
 #include <stack>
 
 #ifdef _MSC_VER




More information about the llvm-commits mailing list