#include "gen/llvm.h" #include "ir/ir.h" #include "ir/irtype.h" std::set IrType::list; void IrType::resetAll() { std::set::iterator it; for(it = list.begin(); it != list.end(); ++it) (*it)->reset(); } IrType::IrType() { list.insert(this); reset(); } IrType::IrType(const IrType& s) { list.insert(this); type = s.type; vtblType = s.type; } IrType::~IrType() { list.erase(this); } void IrType::reset() { type = NULL; vtblType = NULL; }