Remove FreeInst.
[oota-llvm.git] / lib / ExecutionEngine / Interpreter / Execution.cpp
index 151bd00de38e4f3152f8c6def9d05108b88fb9f4..7ceb8e8c54b98304a7307b0f8623b42e4c60d476 100644 (file)
@@ -749,14 +749,6 @@ void Interpreter::visitAllocaInst(AllocaInst &I) {
     ECStack.back().Allocas.add(Memory);
 }
 
-void Interpreter::visitFreeInst(FreeInst &I) {
-  ExecutionContext &SF = ECStack.back();
-  assert(isa<PointerType>(I.getOperand(0)->getType()) && "Freeing nonptr?");
-  GenericValue Value = getOperandValue(I.getOperand(0), SF);
-  // TODO: Check to make sure memory is allocated
-  free(GVTOP(Value));   // Free memory
-}
-
 // getElementOffset - The workhorse for getelementptr.
 //
 GenericValue Interpreter::executeGEPOperation(Value *Ptr, gep_type_iterator I,