llvm.org GIT mirror llvm / b0a994b
Remove unneeded dtors git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8896 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
2 changed file(s) with 0 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2929 Instruction(const Type *Ty, unsigned iType, const std::string &Name = "",
3030 Instruction *InsertBefore = 0);
3131 public:
32 virtual ~Instruction() {
33 assert(Parent == 0 && "Instruction still embedded in basic block!");
34 }
3532
3633 // Specialize setName to handle symbol table majik...
3734 virtual void setName(const std::string &name, SymbolTable *ST = 0);
1919 std::vector Operands;
2020 public:
2121 User(const Type *Ty, ValueTy vty, const std::string &name = "");
22 virtual ~User() { dropAllReferences(); }
2322
2423 inline Value *getOperand(unsigned i) {
2524 assert(i < Operands.size() && "getOperand() out of range!");