diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-03 17:53:30 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-03 17:53:30 +0000 |
commit | 0b6eb591a4d6a7ce35d1a06ecf37637920715fce (patch) | |
tree | 4ca441c8c925d46885ce6282846f21b239553190 /llvm/lib/IR/Attributes.cpp | |
parent | 994863768773ccdb76606b5fc4dabb6745f5da23 (diff) | |
download | llvm-0b6eb591a4d6a7ce35d1a06ecf37637920715fce.zip llvm-0b6eb591a4d6a7ce35d1a06ecf37637920715fce.tar.gz llvm-0b6eb591a4d6a7ce35d1a06ecf37637920715fce.tar.bz2 |
[C++11] Replace LLVM atomics with std::atomic.
With C++11 we finally have a standardized way to specify atomic operations. Use
them to replace the existing custom implemention. Sadly the translation is not
entirely trivial as std::atomic allows more fine-grained control over the
atomicity. I tried to preserve the old semantics as well as possible.
Differential Revision: http://llvm-reviews.chandlerc.com/D2915
llvm-svn: 202730
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 9d9d948..24cd6c7 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -18,7 +18,6 @@ #include "LLVMContextImpl.h" #include "llvm/ADT/StringExtras.h" #include "llvm/IR/Type.h" -#include "llvm/Support/Atomic.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/Mutex.h" |