Moved ir/irtype.* into ir/irdtype.*.

Renamed IrType to IrDType, analogous to IrDSymbol.
This commit is contained in:
Tomas Lindquist Olsen
2009-03-31 20:21:28 +02:00
parent aa8aad611c
commit c6e9f7f9e2
4 changed files with 16 additions and 16 deletions

View File

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