Disable the operator= in Value
authorChris Lattner <sabre@nondot.org>
Wed, 24 Jul 2002 20:01:57 +0000 (20:01 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 24 Jul 2002 20:01:57 +0000 (20:01 +0000)
Disable the copy ctor and operator= in Annotation.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3048 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/Annotation.h
include/llvm/Annotation.h
include/llvm/Support/Annotation.h
include/llvm/Value.h

index c0642e1d23ded9f7759a4f7fce14544b3724f067..90259536b876be05cac192b06b7f5c4f5459b83a 100644 (file)
@@ -81,6 +81,9 @@ public:
 //
 class Annotable {
   mutable Annotation *AnnotationList;
+
+  Annotable(const Annotable &);        // Do not implement
+  void operator=(const Annotable &);   // Do not implement
 public:
   Annotable() : AnnotationList(0) {}
   virtual ~Annotable() {   // Virtual because it's designed to be subclassed...
index c0642e1d23ded9f7759a4f7fce14544b3724f067..90259536b876be05cac192b06b7f5c4f5459b83a 100644 (file)
@@ -81,6 +81,9 @@ public:
 //
 class Annotable {
   mutable Annotation *AnnotationList;
+
+  Annotable(const Annotable &);        // Do not implement
+  void operator=(const Annotable &);   // Do not implement
 public:
   Annotable() : AnnotationList(0) {}
   virtual ~Annotable() {   // Virtual because it's designed to be subclassed...
index c0642e1d23ded9f7759a4f7fce14544b3724f067..90259536b876be05cac192b06b7f5c4f5459b83a 100644 (file)
@@ -81,6 +81,9 @@ public:
 //
 class Annotable {
   mutable Annotation *AnnotationList;
+
+  Annotable(const Annotable &);        // Do not implement
+  void operator=(const Annotable &);   // Do not implement
 public:
   Annotable() : AnnotationList(0) {}
   virtual ~Annotable() {   // Virtual because it's designed to be subclassed...
index fd7287311952311ac43b07573bd9bd9d024f703e..fdde5aed96e8c088f76770f6befa39142844b8ce 100644 (file)
@@ -50,6 +50,7 @@ private:
   PATypeHandle<Type> Ty;
   ValueTy VTy;
 
+  void operator=(const Value &);     // Do not implement
   Value(const Value &);              // Do not implement
 protected:
   inline void setType(const Type *ty) { Ty = ty; }