diff options
author | Victor Hernandez <vhernandez@apple.com> | 2009-10-26 23:43:48 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2009-10-26 23:43:48 +0000 |
commit | de5ad42aa16287671b8e39173f8e0d39b8f35a73 (patch) | |
tree | 4b5bb9c47e42d2dc31877f0a8d5786927266b0c2 /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | |
parent | 7a484dd6a9a900c1c25794a0d555e40e417f693b (diff) | |
download | llvm-de5ad42aa16287671b8e39173f8e0d39b8f35a73.zip llvm-de5ad42aa16287671b8e39173f8e0d39b8f35a73.tar.gz llvm-de5ad42aa16287671b8e39173f8e0d39b8f35a73.tar.bz2 |
Remove FreeInst.
Remove LowerAllocations pass.
Update some more passes to treate free calls just like they were treating FreeInst.
llvm-svn: 85176
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 151bd00..7ceb8e8 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -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, |