Changes in directory llvm/lib/ExecutionEngine/Interpreter:
Interpreter.h updated: 1.85 -> 1.86 --- Log message: APInt's are no longer allocated on the heap because they are direct members of GenericValue. Consequently the code to clean them up isn't needed. --- Diffs of the changes: (+0 -12) Interpreter.h | 12 ------------ 1 files changed, 12 deletions(-) Index: llvm/lib/ExecutionEngine/Interpreter/Interpreter.h diff -u llvm/lib/ExecutionEngine/Interpreter/Interpreter.h:1.85 llvm/lib/ExecutionEngine/Interpreter/Interpreter.h:1.86 --- llvm/lib/ExecutionEngine/Interpreter/Interpreter.h:1.85 Sat Mar 3 12:19:18 2007 +++ llvm/lib/ExecutionEngine/Interpreter/Interpreter.h Mon Mar 5 21:06:48 2007 @@ -76,18 +76,6 @@ CallSite Caller; // Holds the call that called subframes. // NULL if main func or debugger invoked fn AllocaHolderHandle Allocas; // Track memory allocated by alloca - std::vector<APInt*> APInts; // Track memory allocated for APInts - APInt* getAPInt(uint32_t BitWidth) { - APInt* Result = new APInt(BitWidth, 0); - APInts.push_back(Result); - return Result; - } - ~ExecutionContext() { - while (!APInts.empty()) { - delete APInts.back(); - APInts.pop_back(); - } - } }; // Interpreter - This class represents the entirety of the interpreter. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits