[llvm-commits] CVS: llvm/include/llvm/Constant.h GlobalVariable.h Instruction.h
Jeff Cohen
jeffc at jolt-lang.org
Fri Dec 16 16:19:34 PST 2005
Changes in directory llvm/include/llvm:
Constant.h updated: 1.26 -> 1.27
GlobalVariable.h updated: 1.35 -> 1.36
Instruction.h updated: 1.69 -> 1.70
---
Log message:
Fix VC++ level 4 warnings. Because a base class has declared these private, VC++ complains it cannot automatically generate this methods.
---
Diffs of the changes: (+8 -0)
Constant.h | 2 ++
GlobalVariable.h | 3 +++
Instruction.h | 3 +++
3 files changed, 8 insertions(+)
Index: llvm/include/llvm/Constant.h
diff -u llvm/include/llvm/Constant.h:1.26 llvm/include/llvm/Constant.h:1.27
--- llvm/include/llvm/Constant.h:1.26 Tue Oct 25 12:59:28 2005
+++ llvm/include/llvm/Constant.h Fri Dec 16 18:19:22 2005
@@ -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: llvm/include/llvm/GlobalVariable.h
diff -u llvm/include/llvm/GlobalVariable.h:1.35 llvm/include/llvm/GlobalVariable.h:1.36
--- llvm/include/llvm/GlobalVariable.h:1.35 Tue Oct 4 13:12:13 2005
+++ llvm/include/llvm/GlobalVariable.h Fri Dec 16 18:19:22 2005
@@ -34,6 +34,9 @@
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: llvm/include/llvm/Instruction.h
diff -u llvm/include/llvm/Instruction.h:1.69 llvm/include/llvm/Instruction.h:1.70
--- llvm/include/llvm/Instruction.h:1.69 Tue Oct 25 12:59:28 2005
+++ llvm/include/llvm/Instruction.h Fri Dec 16 18:19:22 2005
@@ -27,6 +27,9 @@
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
More information about the llvm-commits
mailing list