mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-12 05:47:11 +03:00
Update decision to emit typeinfo to what dmd does.
This commit is contained in:
parent
f0c0a39d31
commit
de0ab72324
1 changed files with 1 additions and 12 deletions
|
@ -155,18 +155,7 @@ Expression *Type::getTypeInfo(Scope *sc)
|
||||||
Module *m = sc->module->importedFrom;
|
Module *m = sc->module->importedFrom;
|
||||||
m->members->push(t->vtinfo);
|
m->members->push(t->vtinfo);
|
||||||
|
|
||||||
if (ty == Tstruct)
|
semanticTypeInfo(sc, t);
|
||||||
{
|
|
||||||
StructDeclaration *sd = ((TypeStruct *)this)->sym;
|
|
||||||
if ((sd->xeq && sd->xeq != sd->xerreq ||
|
|
||||||
sd->xcmp && sd->xcmp != sd->xerrcmp ||
|
|
||||||
search_toHash(sd) ||
|
|
||||||
search_toString(sd)
|
|
||||||
) && sd->inNonRoot())
|
|
||||||
{
|
|
||||||
Module::addDeferredSemantic3(sd);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else // if in obj generation pass
|
else // if in obj generation pass
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue