diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-06 03:06:48 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-06 03:06:48 +0000 |
commit | 7f68713eb8675d26ed2a77ac37bdc644aaf1e738 (patch) | |
tree | 8c5fd97bfb800812feac07e96152c38fe140423f /llvm/lib/ExecutionEngine | |
parent | 2d89fa84bcdd6d1dd023b90dcb06cc0189a8c08f (diff) | |
download | bcm5719-llvm-7f68713eb8675d26ed2a77ac37bdc644aaf1e738.tar.gz bcm5719-llvm-7f68713eb8675d26ed2a77ac37bdc644aaf1e738.zip |
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.
llvm-svn: 34948
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Interpreter.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h index 04c9e2af62e..323885002ce 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h @@ -76,18 +76,6 @@ struct ExecutionContext { 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. |