From: Zachary Turner Date: Fri, 3 Mar 2017 20:21:59 +0000 (+0000) Subject: [Windows] Remove the #include hack. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e05f54b4e74ba8a4a25a4f929841c33f4f7544b7;p=llvm [Windows] Remove the #include hack. Prior to MSVC 2015 we had to manually include this header any time we were going to include or due to a bug in MSVC's STL implementation. This has been fixed in MSVC for some time now, and we require VS 2015 minimum, so we can remove this across all subprojects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296906 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ExecutionEngine/Orc/RPCUtils.h b/include/llvm/ExecutionEngine/Orc/RPCUtils.h index 38ebd5dd3b2..7047261d233 100644 --- a/include/llvm/ExecutionEngine/Orc/RPCUtils.h +++ b/include/llvm/ExecutionEngine/Orc/RPCUtils.h @@ -26,23 +26,8 @@ #include "llvm/ExecutionEngine/Orc/OrcError.h" #include "llvm/ExecutionEngine/Orc/RPCSerialization.h" -#ifdef _MSC_VER -// concrt.h depends on eh.h for __uncaught_exception declaration -// even if we disable exceptions. -#include - -// Disable warnings from ppltasks.h transitively included by . -#pragma warning(push) -#pragma warning(disable : 4530) -#pragma warning(disable : 4062) -#endif - #include -#ifdef _MSC_VER -#pragma warning(pop) -#endif - namespace llvm { namespace orc { namespace rpc { diff --git a/include/llvm/Support/ThreadPool.h b/include/llvm/Support/ThreadPool.h index 665cec2465b..f0e3ffa0999 100644 --- a/include/llvm/Support/ThreadPool.h +++ b/include/llvm/Support/ThreadPool.h @@ -16,23 +16,8 @@ #include "llvm/Support/thread.h" -#ifdef _MSC_VER -// concrt.h depends on eh.h for __uncaught_exception declaration -// even if we disable exceptions. -#include - -// Disable warnings from ppltasks.h transitively included by . -#pragma warning(push) -#pragma warning(disable:4530) -#pragma warning(disable:4062) -#endif - #include -#ifdef _MSC_VER -#pragma warning(pop) -#endif - #include #include #include diff --git a/include/llvm/Support/thread.h b/include/llvm/Support/thread.h index 9c45418df55..787a513d601 100644 --- a/include/llvm/Support/thread.h +++ b/include/llvm/Support/thread.h @@ -21,22 +21,8 @@ #if LLVM_ENABLE_THREADS -#ifdef _MSC_VER -// concrt.h depends on eh.h for __uncaught_exception declaration -// even if we disable exceptions. -#include - -// Suppress 'C++ exception handler used, but unwind semantics are not enabled.' -#pragma warning(push) -#pragma warning(disable:4530) -#endif - #include -#ifdef _MSC_VER -#pragma warning(pop) -#endif - namespace llvm { typedef std::thread thread; }