diff options
| author | Dean Michael Berris <dberris@google.com> | 2018-06-05 06:12:42 +0000 |
|---|---|---|
| committer | Dean Michael Berris <dberris@google.com> | 2018-06-05 06:12:42 +0000 |
| commit | 5eaaff60954f37b6db04319c4a0b65da9cd88d21 (patch) | |
| tree | c1096a3591520481da89bd1fe9ed896b3b392e5c /compiler-rt/lib/xray/xray_buffer_queue.h | |
| parent | 8ba925d2c35e55a48c8817194e333c9599304a78 (diff) | |
| download | bcm5719-llvm-5eaaff60954f37b6db04319c4a0b65da9cd88d21.tar.gz bcm5719-llvm-5eaaff60954f37b6db04319c4a0b65da9cd88d21.zip | |
[XRay][compiler-rt] Remove __sanitizer:: from namespace __xray (NFC)
This is a non-functional change that removes the full qualification of
functions in __sanitizer:: being used in __xray.
llvm-svn: 333983
Diffstat (limited to 'compiler-rt/lib/xray/xray_buffer_queue.h')
| -rw-r--r-- | compiler-rt/lib/xray/xray_buffer_queue.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/compiler-rt/lib/xray/xray_buffer_queue.h b/compiler-rt/lib/xray/xray_buffer_queue.h index 70e64b4539b..e76fa7983c9 100644 --- a/compiler-rt/lib/xray/xray_buffer_queue.h +++ b/compiler-rt/lib/xray/xray_buffer_queue.h @@ -30,7 +30,7 @@ namespace __xray { class BufferQueue { public: struct alignas(64) BufferExtents { - __sanitizer::atomic_uint64_t Size; + atomic_uint64_t Size; }; struct Buffer { @@ -112,8 +112,8 @@ private: // Amount of pre-allocated buffers. size_t BufferCount; - __sanitizer::SpinMutex Mutex; - __sanitizer::atomic_uint8_t Finalizing; + SpinMutex Mutex; + atomic_uint8_t Finalizing; // Pointers to buffers managed/owned by the BufferQueue. void **OwnedBuffers; @@ -180,8 +180,7 @@ public: ErrorCode releaseBuffer(Buffer &Buf); bool finalizing() const { - return __sanitizer::atomic_load(&Finalizing, - __sanitizer::memory_order_acquire); + return atomic_load(&Finalizing, memory_order_acquire); } /// Returns the configured size of the buffers in the buffer queue. @@ -200,7 +199,7 @@ public: /// Buffer is marked 'used' (i.e. has been the result of getBuffer(...) and a /// releaseBuffer(...) operation). template <class F> void apply(F Fn) { - __sanitizer::SpinMutexLock G(&Mutex); + SpinMutexLock G(&Mutex); for (auto I = begin(), E = end(); I != E; ++I) Fn(*I); } |

