[svn r110] Fixed typeinfo for classes.

This commit is contained in:
Tomas Lindquist Olsen
2007-11-19 06:01:48 +01:00
parent b347fd8a50
commit 2af443b045
12 changed files with 433 additions and 61 deletions

View File

@@ -212,6 +212,10 @@ void DtoDeclareClass(ClassDeclaration* cd)
// classinfo
DtoDeclareClassInfo(cd);
// typeinfo
if (cd->parent->isModule() && cd->getModule() == gIR->dmodule)
cd->type->getTypeInfo(NULL);
}
//////////////////////////////////////////////////////////////////////////////////////////
@@ -530,7 +534,7 @@ void DtoDefineClassInfo(ClassDeclaration* cd)
for (size_t i = 0; i < cd2->members->dim; i++)
{
Dsymbol *sm = (Dsymbol *)cd2->members->data[i];
//printf("sm = %s %s\n", sm->kind(), sm->toChars());
//printf("sm = %s %s\n", sm->kind(), sm->toChars());
if (sm->hasPointers())
goto L2;
}