Fix VC++ level 4 warnings. Because a base class has declared these private, VC+...
authorJeff Cohen <jeffc@jolt-lang.org>
Sat, 17 Dec 2005 00:19:22 +0000 (00:19 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Sat, 17 Dec 2005 00:19:22 +0000 (00:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24751 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constant.h
include/llvm/GlobalVariable.h
include/llvm/Instruction.h

index f9d8441a675ba02c60b70a4b6f68e6aaeb0d0ebc..e2b77a7e21a98788138d99c09f2792b6b488cce1 100644 (file)
@@ -19,6 +19,8 @@
 namespace llvm {
 
 class Constant : public User {
+  void operator=(const Constant &);     // Do not implement
+  Constant(const Constant &);           // Do not implement
 protected:
   Constant(const Type *Ty, ValueTy vty, Use *Ops, unsigned NumOps,
            const std::string& Name = "")
index 7c6aee37f37f6de43709eaf55958aaadb215d09d..87df5d514fdb549fb5bc33cd37747d28e1439d28 100644 (file)
@@ -34,6 +34,9 @@ template<typename ValueSubClass, typename ItemParentClass, typename SymTabClass,
 class GlobalVariable : public GlobalValue {
   friend class SymbolTableListTraits<GlobalVariable, Module, Module,
                                      ilist_traits<GlobalVariable> >;
+  void operator=(const GlobalVariable &);     // Do not implement
+  GlobalVariable(const GlobalVariable &);     // Do not implement
+
   void setParent(Module *parent);
 
   GlobalVariable *Prev, *Next;
index d9cb5859211513b2b5022046a3a36d8d184a0959..2b025dd8753f0f033cd68afff167583930d6505f 100644 (file)
@@ -27,6 +27,9 @@ template<typename ValueSubClass, typename ItemParentClass, typename SymTabClass,
          typename SubClass> class SymbolTableListTraits;
 
 class Instruction : public User {
+  void operator=(const Instruction &);     // Do not implement
+  Instruction(const Instruction &);        // Do not implement
+
   BasicBlock *Parent;
   Instruction *Prev, *Next; // Next and Prev links for our intrusive linked list