mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-20 04:10:18 +02:00
Make typeinfo for struct
This commit is contained in:
+7
-3
@@ -48,7 +48,8 @@ void DtoResolveStruct(StructDeclaration* sd)
|
|||||||
LLGlobalVariable* initZ = irstruct->getInitSymbol();
|
LLGlobalVariable* initZ = irstruct->getInitSymbol();
|
||||||
|
|
||||||
// perform definition
|
// perform definition
|
||||||
if (mustDefineSymbol(sd))
|
bool needs_def = mustDefineSymbol(sd);
|
||||||
|
if (needs_def)
|
||||||
{
|
{
|
||||||
// set initZ initializer
|
// set initZ initializer
|
||||||
initZ->setInitializer(irstruct->getDefaultInit());
|
initZ->setInitializer(irstruct->getDefaultInit());
|
||||||
@@ -67,8 +68,11 @@ void DtoResolveStruct(StructDeclaration* sd)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// emit typeinfo
|
if (needs_def)
|
||||||
DtoTypeInfoOf(sd->type);
|
{
|
||||||
|
// emit typeinfo
|
||||||
|
DtoTypeInfoOf(sd->type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user