#include "InterpBlock.h"
#include "Pointer.h"
usingnamespaceclang;
usingnamespaceclang::interp;
void Block::addPointer(Pointer *P) { … }
void Block::removePointer(Pointer *P) { … }
void Block::cleanup() { … }
void Block::replacePointer(Pointer *Old, Pointer *New) { … }
#ifndef NDEBUG
bool Block::hasPointer(const Pointer *P) const {
for (const Pointer *C = Pointers; C; C = C->Next) {
if (C == P)
return true;
}
return false;
}
#endif
DeadBlock::DeadBlock(DeadBlock *&Root, Block *Blk)
: … { … }
void DeadBlock::free() { … }