Remove unneeded dtors

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8896 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-10-06 17:36:49 +00:00
parent 4e84e7720c
commit b0a994b4c0
2 changed files with 0 additions and 4 deletions

View File

@ -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);

View File

@ -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!");