aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/Interpreter
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-06 03:06:48 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-06 03:06:48 +0000
commitd08050bd1e66a71aa37b48226a90ba9fc657fb36 (patch)
tree8ec30dd97ed918fdca4ed7c0d034804975b19b60 /lib/ExecutionEngine/Interpreter
parentdeca08d93d90f51452dacfb957560dd442f8f564 (diff)
downloadexternal_llvm-d08050bd1e66a71aa37b48226a90ba9fc657fb36.zip
external_llvm-d08050bd1e66a71aa37b48226a90ba9fc657fb36.tar.gz
external_llvm-d08050bd1e66a71aa37b48226a90ba9fc657fb36.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter')
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h
index 04c9e2a..3238850 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/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.