aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-06 17:36:49 +0000
committerChris Lattner <sabre@nondot.org>2003-10-06 17:36:49 +0000
commitb0a994b4c03ee1a27aef551b43f70c2ce2e003ad (patch)
tree5fcc5dee586dfcd2697e5e082b2b49a1be206e83
parent4e84e7720c333112da24bd4e9d4c7bfb4d446016 (diff)
Remove unneeded dtors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8896 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Instruction.h3
-rw-r--r--include/llvm/User.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 9bd0bd2384..d21cd422e4 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -30,9 +30,6 @@ protected:
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);
diff --git a/include/llvm/User.h b/include/llvm/User.h
index aa29f6dae3..2175ad0ae0 100644
--- a/include/llvm/User.h
+++ b/include/llvm/User.h
@@ -20,7 +20,6 @@ protected:
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!");