summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-24 20:01:57 +0000
committerChris Lattner <sabre@nondot.org>2002-07-24 20:01:57 +0000
commitfeb53298fd5dd787639247da9e0fb2369bea8edf (patch)
tree716f2450d0896901afba75e4bc7b522cf0cd6a27
parentf70058d24dc3a30a633fe61376f09fecfe06c501 (diff)
downloadbcm5719-llvm-feb53298fd5dd787639247da9e0fb2369bea8edf.tar.gz
bcm5719-llvm-feb53298fd5dd787639247da9e0fb2369bea8edf.zip
Disable the operator= in Value
Disable the copy ctor and operator= in Annotation.h llvm-svn: 3048
-rw-r--r--llvm/include/Support/Annotation.h3
-rw-r--r--llvm/include/llvm/Annotation.h3
-rw-r--r--llvm/include/llvm/Value.h1
3 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/Support/Annotation.h b/llvm/include/Support/Annotation.h
index c0642e1d23d..90259536b87 100644
--- a/llvm/include/Support/Annotation.h
+++ b/llvm/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/llvm/include/llvm/Annotation.h b/llvm/include/llvm/Annotation.h
index c0642e1d23d..90259536b87 100644
--- a/llvm/include/llvm/Annotation.h
+++ b/llvm/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/llvm/include/llvm/Value.h b/llvm/include/llvm/Value.h
index fd728731195..fdde5aed96e 100644
--- a/llvm/include/llvm/Value.h
+++ b/llvm/include/llvm/Value.h
@@ -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; }
OpenPOWER on IntegriCloud