[libc++abi] Replace __sync_* functions with __libcpp_atomic_* functions.
authorEli Friedman <efriedma@codeaurora.org>
Mon, 16 Apr 2018 22:00:14 +0000 (22:00 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Mon, 16 Apr 2018 22:00:14 +0000 (22:00 +0000)
commit17a47b915ab28f158dad485625c34db2bcc23821
tree9545eb55e625473e287b7e6238c8d81213b5ab9c
parentaca6d0013c24a9909069942696ec3d0063b7a583
[libc++abi] Replace __sync_* functions with __libcpp_atomic_* functions.

This is basically part 2 of r313694.

It's a little unfortunate that I had to copy-paste atomic_support.h,
but I don't really see any alternative.

The refstring.h changes are the same as the libcxx changes in r313694.

llvm-svn: 330162
libcxxabi/src/cxa_default_handlers.cpp
libcxxabi/src/cxa_exception.cpp
libcxxabi/src/cxa_handlers.cpp
libcxxabi/src/include/atomic_support.h [new file with mode: 0644]
libcxxabi/src/include/refstring.h