[llvm-commits] [llvm] r53188 - /llvm/trunk/include/llvm/Support/Allocator.h
Dan Gohman
gohman at apple.com
Mon Jul 7 11:38:14 PDT 2008
Author: djg
Date: Mon Jul 7 13:38:14 2008
New Revision: 53188
URL: http://llvm.org/viewvc/llvm-project?rev=53188&view=rev
Log:
Make BumpPtrAllocator noncopyable.
Modified:
llvm/trunk/include/llvm/Support/Allocator.h
Modified: llvm/trunk/include/llvm/Support/Allocator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Allocator.h?rev=53188&r1=53187&r2=53188&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Allocator.h (original)
+++ llvm/trunk/include/llvm/Support/Allocator.h Mon Jul 7 13:38:14 2008
@@ -41,6 +41,9 @@
/// 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();
More information about the llvm-commits
mailing list