diff options
| author | Weiming Zhao <weimingz@codeaurora.org> | 2017-09-19 23:18:03 +0000 |
|---|---|---|
| committer | Weiming Zhao <weimingz@codeaurora.org> | 2017-09-19 23:18:03 +0000 |
| commit | fbfaec7089b8bfc1e3ef91dfbc50b4b7cf7a79e7 (patch) | |
| tree | bf88e3f6fae85e9cc9fec9db4f23ba229b229997 /libcxx/src/new.cpp | |
| parent | 3ac802a1f65f71c739f58c2f49ee967e99ba3170 (diff) | |
| download | bcm5719-llvm-fbfaec7089b8bfc1e3ef91dfbc50b4b7cf7a79e7.tar.gz bcm5719-llvm-fbfaec7089b8bfc1e3ef91dfbc50b4b7cf7a79e7.zip | |
[libc++] Replace __sync_* functions with __libcpp_atomic_* functions
Summary:
This patch replaces __sync_* with __libcpp_atomic_* and adds a wrapper
function for __atomic_exchange to support _LIBCPP_HAS_NO_THREADS.
Reviewers: EricWF, jroelofs, mclow.lists, compnerd
Reviewed By: EricWF, compnerd
Subscribers: compnerd, efriedma, cfe-commits, joerg, llvm-commits
Differential Revision: https://reviews.llvm.org/D35235
llvm-svn: 313694
Diffstat (limited to 'libcxx/src/new.cpp')
| -rw-r--r-- | libcxx/src/new.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/src/new.cpp b/libcxx/src/new.cpp index 2b2682fa661..01df2512126 100644 --- a/libcxx/src/new.cpp +++ b/libcxx/src/new.cpp @@ -12,6 +12,7 @@ #include <stdlib.h> #include "new" +#include "include/atomic_support.h" #if defined(_LIBCPP_ABI_MICROSOFT) // nothing todo |

