From: Chris Lattner Date: Wed, 24 Jul 2002 20:01:57 +0000 (+0000) Subject: Disable the operator= in Value X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e2c677fd9cf412e77783b1e4d7eee57508a3e6db;p=oota-llvm.git Disable the operator= in Value 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 --- diff --git a/include/Support/Annotation.h b/include/Support/Annotation.h index c0642e1d23d..90259536b87 100644 --- a/include/Support/Annotation.h +++ b/include/Support/Annotation.h @@ -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... diff --git a/include/llvm/Annotation.h b/include/llvm/Annotation.h index c0642e1d23d..90259536b87 100644 --- a/include/llvm/Annotation.h +++ b/include/llvm/Annotation.h @@ -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... diff --git a/include/llvm/Support/Annotation.h b/include/llvm/Support/Annotation.h index c0642e1d23d..90259536b87 100644 --- a/include/llvm/Support/Annotation.h +++ b/include/llvm/Support/Annotation.h @@ -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... diff --git a/include/llvm/Value.h b/include/llvm/Value.h index fd728731195..fdde5aed96e 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -50,6 +50,7 @@ private: PATypeHandle 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; }