[llvm-commits] [llvm] r53190 - /llvm/trunk/include/llvm/ADT/ilist.h

Dan Gohman gohman at apple.com
Mon Jul 7 11:43:32 PDT 2008


Author: djg
Date: Mon Jul  7 13:43:32 2008
New Revision: 53190

URL: http://llvm.org/viewvc/llvm-project?rev=53190&view=rev
Log:
Make ilist noncopyable too.

Modified:
    llvm/trunk/include/llvm/ADT/ilist.h

Modified: llvm/trunk/include/llvm/ADT/ilist.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ilist.h?rev=53190&r1=53189&r2=53190&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/ilist.h (original)
+++ llvm/trunk/include/llvm/ADT/ilist.h Mon Jul  7 13:43:32 2008
@@ -256,6 +256,12 @@
 
   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;





More information about the llvm-commits mailing list