aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-12-17 00:19:22 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-12-17 00:19:22 +0000
commitc5f24a2c2a16681f7816ac053c8f46a2692a3b7a (patch)
tree68ce46dc573b84e4d1b5cbb2c54484b73f109dcb
parente15ccf464cfa78423e34264c2047cb44d6974b65 (diff)
Fix VC++ level 4 warnings. Because a base class has declared these private, VC++ complains it cannot automatically generate this methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24751 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Constant.h2
-rw-r--r--include/llvm/GlobalVariable.h3
-rw-r--r--include/llvm/Instruction.h3
3 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h
index f9d8441a67..e2b77a7e21 100644
--- a/include/llvm/Constant.h
+++ b/include/llvm/Constant.h
@@ -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 = "")
diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h
index 7c6aee37f3..87df5d514f 100644
--- a/include/llvm/GlobalVariable.h
+++ b/include/llvm/GlobalVariable.h
@@ -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;
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index d9cb585921..2b025dd875 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -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