summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-12-21 18:50:52 +0000
committerZachary Turner <zturner@google.com>2016-12-21 18:50:52 +0000
commitab266cf95beb0fc3607afc57ed7d205ddc26ea30 (patch)
treefe34061014283c495b2fa46189db6c48ba0ccd48 /llvm
parent80ba2929e6e757d831ede45cb56186cb66e7ca23 (diff)
downloadbcm5719-llvm-ab266cf95beb0fc3607afc57ed7d205ddc26ea30.tar.gz
bcm5719-llvm-ab266cf95beb0fc3607afc57ed7d205ddc26ea30.zip
Add missing includes on Windows.
Patch by Andrey Khalyavin Differential Revision: https://reviews.llvm.org/D27915 llvm-svn: 290263
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/SwapByteOrder.h3
-rw-r--r--llvm/lib/Support/Windows/Signals.inc1
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/SwapByteOrder.h b/llvm/include/llvm/Support/SwapByteOrder.h
index 91693aceb27..71d3724950a 100644
--- a/llvm/include/llvm/Support/SwapByteOrder.h
+++ b/llvm/include/llvm/Support/SwapByteOrder.h
@@ -18,6 +18,9 @@
#include "llvm/Support/Compiler.h"
#include "llvm/Support/DataTypes.h"
#include <cstddef>
+#if defined(_MSC_VER) && !defined(_DEBUG)
+#include <stdlib.h>
+#endif
namespace llvm {
namespace sys {
diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc
index 1d6263a3d7d..f739421eece 100644
--- a/llvm/lib/Support/Windows/Signals.inc
+++ b/llvm/lib/Support/Windows/Signals.inc
@@ -28,6 +28,7 @@
#ifdef __MINGW32__
#include <imagehlp.h>
#else
+ #include <crtdbg.h>
#include <dbghelp.h>
#endif
#include <psapi.h>
OpenPOWER on IntegriCloud