summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-07 18:43:32 +0000
committerDan Gohman <gohman@apple.com>2008-07-07 18:43:32 +0000
commit93e6fc4873110582693e9178666a65e6992c236f (patch)
treeb1751f2015ff63fdd9fcfdfea1007973e40252b7 /llvm
parent125919217a8ce245329e6b3545ca7e49361c6742 (diff)
downloadbcm5719-llvm-93e6fc4873110582693e9178666a65e6992c236f.tar.gz
bcm5719-llvm-93e6fc4873110582693e9178666a65e6992c236f.zip
Make ilist noncopyable too.
llvm-svn: 53190
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ADT/ilist.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/ilist.h b/llvm/include/llvm/ADT/ilist.h
index 016e9fd15fa..9700b60f240 100644
--- a/llvm/include/llvm/ADT/ilist.h
+++ b/llvm/include/llvm/ADT/ilist.h
@@ -256,6 +256,12 @@ class iplist : public Traits {
static bool op_less(NodeTy &L, NodeTy &R) { return L < R; }
static bool op_equal(NodeTy &L, NodeTy &R) { return L == R; }
+
+ // No fundamental reason why iplist can't by copyable, but the default
+ // copy/copy-assign won't do.
+ iplist(const iplist &); // do not implement
+ void operator=(const iplist &); // do not implement
+
public:
typedef NodeTy *pointer;
typedef const NodeTy *const_pointer;
OpenPOWER on IntegriCloud