[llvm-commits] CVS: llvm/include/llvm/Instruction.h User.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 6 12:37:03 PDT 2003
Changes in directory llvm/include/llvm:
Instruction.h updated: 1.45 -> 1.46
User.h updated: 1.21 -> 1.22
---
Log message:
Remove unneeded dtors
---
Diffs of the changes:
Index: llvm/include/llvm/Instruction.h
diff -u llvm/include/llvm/Instruction.h:1.45 llvm/include/llvm/Instruction.h:1.46
--- llvm/include/llvm/Instruction.h:1.45 Thu Jul 31 00:08:02 2003
+++ llvm/include/llvm/Instruction.h Mon Oct 6 12:36:49 2003
@@ -30,9 +30,6 @@
Instruction(const Type *Ty, unsigned iType, const std::string &Name = "",
Instruction *InsertBefore = 0);
public:
- virtual ~Instruction() {
- assert(Parent == 0 && "Instruction still embedded in basic block!");
- }
// Specialize setName to handle symbol table majik...
virtual void setName(const std::string &name, SymbolTable *ST = 0);
Index: llvm/include/llvm/User.h
diff -u llvm/include/llvm/User.h:1.21 llvm/include/llvm/User.h:1.22
--- llvm/include/llvm/User.h:1.21 Tue Sep 30 13:37:37 2003
+++ llvm/include/llvm/User.h Mon Oct 6 12:36:49 2003
@@ -20,7 +20,6 @@
std::vector<Use> Operands;
public:
User(const Type *Ty, ValueTy vty, const std::string &name = "");
- virtual ~User() { dropAllReferences(); }
inline Value *getOperand(unsigned i) {
assert(i < Operands.size() && "getOperand() out of range!");
More information about the llvm-commits
mailing list