Make BumpPtrAllocator noncopyable.
authorDan Gohman <gohman@apple.com>
Mon, 7 Jul 2008 18:38:14 +0000 (18:38 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 7 Jul 2008 18:38:14 +0000 (18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53188 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Allocator.h

index 6056b83c73dab86e6d68123304369dc90156441d..eab6d332c409d5d62fc0eff1a46a58923f989c18 100644 (file)
@@ -41,6 +41,9 @@ public:
 /// allocating memory, and never deletes it until the entire block is dead. This
 /// makes allocation speedy, but must only be used when the trade-off is ok.
 class BumpPtrAllocator {
+  BumpPtrAllocator(const BumpPtrAllocator &); // do not implement
+  void operator=(const BumpPtrAllocator &);   // do not implement
+
   void *TheMemory;
 public:
   BumpPtrAllocator();