mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-08 03:46:02 +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;
|
||||
m->members->push(t->vtinfo);
|
||||
|
||||
if (ty == Tstruct)
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
semanticTypeInfo(sc, t);
|
||||
}
|
||||
else // if in obj generation pass
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue