[XRay][compiler-rt] Use sanitizer_common's atomic ops
authorDean Michael Berris <dberris@google.com>
Mon, 27 Mar 2017 07:13:35 +0000 (07:13 +0000)
committerDean Michael Berris <dberris@google.com>
Mon, 27 Mar 2017 07:13:35 +0000 (07:13 +0000)
commit1dcec254876341dc61747e16c061cbff30fbec8a
treec59d2a9d008392462149fc735b633544432f4ccf
parentd3ecc0db4405d3e7800e3e7389d5a30e729fc8e7
[XRay][compiler-rt] Use sanitizer_common's atomic ops

Instead of std::atomic APIs for atomic operations, we instead use APIs
include with sanitizer_common. This allows us to, at runtime, not have
to depend on potentially dynamically provided implementations of these
atomic operations.

Fixes http://llvm.org/PR32274.

llvm-svn: 298833
compiler-rt/lib/xray/tests/CMakeLists.txt
compiler-rt/lib/xray/xray_buffer_queue.cc
compiler-rt/lib/xray/xray_buffer_queue.h
compiler-rt/lib/xray/xray_fdr_logging.cc
compiler-rt/lib/xray/xray_fdr_logging_impl.h
compiler-rt/lib/xray/xray_init.cc
compiler-rt/lib/xray/xray_interface.cc
compiler-rt/lib/xray/xray_log_interface.cc