projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dae6f4c
)
Make BumpPtrAllocator noncopyable.
author
Dan Gohman
<gohman@apple.com>
Mon, 7 Jul 2008 18:38:14 +0000
(18:38 +0000)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/include/llvm/Support/Allocator.h
b/include/llvm/Support/Allocator.h
index 6056b83c73dab86e6d68123304369dc90156441d..eab6d332c409d5d62fc0eff1a46a58923f989c18 100644
(file)
--- a/
include/llvm/Support/Allocator.h
+++ b/
include/llvm/Support/Allocator.h
@@
-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();