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/exception.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/exception.cpp')
-rw-r--r-- | libcxx/src/exception.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/src/exception.cpp b/libcxx/src/exception.cpp index 4359d126173..3d2dcfd5b10 100644 --- a/libcxx/src/exception.cpp +++ b/libcxx/src/exception.cpp @@ -31,6 +31,7 @@ #include "support/runtime/exception_glibcxx.ipp" #include "support/runtime/exception_pointer_glibcxx.ipp" #else +#include "include/atomic_support.h" #include "support/runtime/exception_fallback.ipp" #include "support/runtime/exception_pointer_unimplemented.ipp" #endif |