summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/xray/xray_buffer_queue.h
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2018-06-05 03:46:54 +0000
committerDean Michael Berris <dberris@google.com>2018-06-05 03:46:54 +0000
commit8ba925d2c35e55a48c8817194e333c9599304a78 (patch)
tree99ea4549dfd581e990c35f55d095e755b80d2a48 /compiler-rt/lib/xray/xray_buffer_queue.h
parente5eb99668c3413726c27bb57f8c7560cbd3df51c (diff)
downloadbcm5719-llvm-8ba925d2c35e55a48c8817194e333c9599304a78.tar.gz
bcm5719-llvm-8ba925d2c35e55a48c8817194e333c9599304a78.zip
[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
Diffstat (limited to 'compiler-rt/lib/xray/xray_buffer_queue.h')
-rw-r--r--compiler-rt/lib/xray/xray_buffer_queue.h2
1 files changed, 1 insertions, 1 deletions
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.
OpenPOWER on IntegriCloud