From 8ba925d2c35e55a48c8817194e333c9599304a78 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Tue, 5 Jun 2018 03:46:54 +0000 Subject: [XRay][compiler-rt] Remove reliance on C++ ABI from BufferQueue Summary: This is part of the work to address http://llvm.org/PR32274. We remove the calls to array-placement-new and array-delete. This allows us to rely on the internal memory management provided by sanitizer_common/sanitizer_internal_allocator.h. Reviewers: eizan, kpw Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D47695 llvm-svn: 333982 --- compiler-rt/lib/xray/xray_buffer_queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler-rt/lib/xray/xray_buffer_queue.h') diff --git a/compiler-rt/lib/xray/xray_buffer_queue.h b/compiler-rt/lib/xray/xray_buffer_queue.h index 3f61263a8ed..70e64b4539b 100644 --- a/compiler-rt/lib/xray/xray_buffer_queue.h +++ b/compiler-rt/lib/xray/xray_buffer_queue.h @@ -39,7 +39,6 @@ public: BufferExtents *Extents; }; -private: struct BufferRep { // The managed buffer. Buffer Buff; @@ -49,6 +48,7 @@ private: bool Used = false; }; +private: // This models a ForwardIterator. |T| Must be either a `Buffer` or `const // Buffer`. Note that we only advance to the "used" buffers, when // incrementing, so that at dereference we're always at a valid point. -- cgit v1.2.3