diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-03 18:02:34 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-03 18:02:34 +0000 |
commit | 17388a61b270a21ee711cd51e003c17d2b3bdf29 (patch) | |
tree | 8266a71177053c8198869a5316c079498cea679b /llvm/lib/Support/Threading.cpp | |
parent | 0b6eb591a4d6a7ce35d1a06ecf37637920715fce (diff) | |
download | bcm5719-llvm-17388a61b270a21ee711cd51e003c17d2b3bdf29.tar.gz bcm5719-llvm-17388a61b270a21ee711cd51e003c17d2b3bdf29.zip |
Revert "[C++11] Replace LLVM atomics with std::atomic."
Breaks the MSVC build.
DataStream.cpp(44): error C2552: 'llvm::Statistic::Value' : non-aggregates cannot be initialized with initializer list
llvm-svn: 202731
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
-rw-r--r-- | llvm/lib/Support/Threading.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/Threading.cpp b/llvm/lib/Support/Threading.cpp index 15dd8a98052..9d7ac6c18de 100644 --- a/llvm/lib/Support/Threading.cpp +++ b/llvm/lib/Support/Threading.cpp @@ -13,8 +13,8 @@ #include "llvm/Support/Threading.h" #include "llvm/Config/config.h" +#include "llvm/Support/Atomic.h" #include "llvm/Support/Mutex.h" -#include <atomic> #include <cassert> using namespace llvm; @@ -31,7 +31,7 @@ bool llvm::llvm_start_multithreaded() { // We fence here to ensure that all initialization is complete BEFORE we // return from llvm_start_multithreaded(). - std::atomic_thread_fence(std::memory_order_seq_cst); + sys::MemoryFence(); return true; #else return false; @@ -44,7 +44,7 @@ void llvm::llvm_stop_multithreaded() { // We fence here to insure that all threaded operations are complete BEFORE we // return from llvm_stop_multithreaded(). - std::atomic_thread_fence(std::memory_order_seq_cst); + sys::MemoryFence(); multithreaded_mode = false; delete global_lock; |