}
+
+//===----------------------------------------------------------------------===//
+// TerminatorInst Class
+//===----------------------------------------------------------------------===//
+
+// Out of line virtual method, so the vtable, etc has a home.
+TerminatorInst::~TerminatorInst() {
+}
+
+// Out of line virtual method, so the vtable, etc has a home.
+UnaryInstruction::~UnaryInstruction() {
+}
+
+
//===----------------------------------------------------------------------===//
// PHINode Class
//===----------------------------------------------------------------------===//
}
}
-void PHINode::destroyThis(PHINode*v) {
- delete [] v->OperandList;
- Instruction::destroyThis(v);
+PHINode::~PHINode() {
+ delete [] OperandList;
}
// removeIncomingValue - Remove an incoming value. This is useful if a
// CallInst Implementation
//===----------------------------------------------------------------------===//
-void CallInst::destroyThis(CallInst*v) {
- delete [] v->OperandList;
- if (v->ParamAttrs)
- v->ParamAttrs->dropRef();
- Instruction::destroyThis(v);
+CallInst::~CallInst() {
+ delete [] OperandList;
+ if (ParamAttrs)
+ ParamAttrs->dropRef();
}
void CallInst::init(Value *Func, Value* const *Params, unsigned NumParams) {
// InvokeInst Implementation
//===----------------------------------------------------------------------===//
-void InvokeInst::destroyThis(InvokeInst*v) {
- delete [] v->OperandList;
- if (v->ParamAttrs)
- v->ParamAttrs->dropRef();
- TerminatorInst::destroyThis(v);
+InvokeInst::~InvokeInst() {
+ delete [] OperandList;
+ if (ParamAttrs)
+ ParamAttrs->dropRef();
}
void InvokeInst::init(Value *Fn, BasicBlock *IfNormal, BasicBlock *IfException,
setName(Name);
}
+// Out of line virtual method, so the vtable, etc has a home.
+AllocationInst::~AllocationInst() {
+}
+
bool AllocationInst::isArrayAllocation() const {
if (ConstantInt *CI = dyn_cast<ConstantInt>(getOperand(0)))
return CI->getZExtValue() != 1;
setName(Name);
}
-void GetElementPtrInst::destroyThis(GetElementPtrInst*v) {
- delete[] v->OperandList;
+GetElementPtrInst::~GetElementPtrInst() {
+ delete[] OperandList;
}
// getIndexedType - Returns the type of the element that would be loaded with
}
}
-void SwitchInst::destroyThis(SwitchInst*v) {
- delete [] v->OperandList;
- TerminatorInst::destroyThis(v);
+SwitchInst::~SwitchInst() {
+ delete [] OperandList;
}