mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 17:43:14 +01:00
Moved ir/irtype.* into ir/irdtype.*.
Renamed IrType to IrDType, analogous to IrDSymbol.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user