Reduce size of IrDsymbol even more

resolved/defined/declared/initialized are turned into flags.
This commit is contained in:
Alexey Prokhin 2014-09-12 00:35:37 +04:00
parent 18f33b1815
commit 32b1d4cc55
8 changed files with 76 additions and 64 deletions

View file

@ -36,8 +36,8 @@ void DtoResolveStruct(StructDeclaration* sd)
void DtoResolveStruct(StructDeclaration* sd, Loc& callerLoc)
{
// Make sure to resolve each struct type exactly once.
if (sd->ir.resolved) return;
sd->ir.resolved = true;
if (sd->ir.isResolved()) return;
sd->ir.setResolved();
IF_LOG Logger::println("Resolving struct type: %s (%s)", sd->toChars(), sd->loc.toChars());
LOG_SCOPE;