mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
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
This commit is contained in:
parent
deca08d93d
commit
d08050bd1e
@ -76,18 +76,6 @@ struct ExecutionContext {
|
|||||||
CallSite Caller; // Holds the call that called subframes.
|
CallSite Caller; // Holds the call that called subframes.
|
||||||
// NULL if main func or debugger invoked fn
|
// NULL if main func or debugger invoked fn
|
||||||
AllocaHolderHandle Allocas; // Track memory allocated by alloca
|
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.
|
// Interpreter - This class represents the entirety of the interpreter.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user