From bd3306aecb3a15e8967143b8cdbbccf2b1b19b74 Mon Sep 17 00:00:00 2001 From: patrick Date: Sat, 14 Jan 2017 19:55:43 +0000 Subject: Import LLVM 3.9.1 including clang and lld. --- gnu/llvm/lib/Support/Threading.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gnu/llvm/lib/Support/Threading.cpp') diff --git a/gnu/llvm/lib/Support/Threading.cpp b/gnu/llvm/lib/Support/Threading.cpp index ca7f3f64aa3..e8f5622d0e5 100644 --- a/gnu/llvm/lib/Support/Threading.cpp +++ b/gnu/llvm/lib/Support/Threading.cpp @@ -16,6 +16,7 @@ #include "llvm/Config/config.h" #include "llvm/Support/Atomic.h" #include "llvm/Support/Mutex.h" +#include "llvm/Support/thread.h" #include using namespace llvm; @@ -71,6 +72,11 @@ void llvm::llvm_execute_on_thread(void (*Fn)(void*), void *UserData, #include "Windows/WindowsSupport.h" #include +// Windows will at times define MemoryFence. +#ifdef MemoryFence +#undef MemoryFence +#endif + struct ThreadInfo { void (*func)(void*); void *param; -- cgit v1.2.3-59-g8ed1b