Refactor generation of interface vtbls for classes

This commit is contained in:
Martin Kinkelin 2020-10-11 21:12:04 +02:00
parent e9021fd6c8
commit 3f452646f5
4 changed files with 80 additions and 88 deletions

View file

@ -56,7 +56,7 @@ void DtoResolveClass(ClassDeclaration *cd) {
DtoType(cd->type);
// create IrAggr
IrClass *irAggr = getIrAggr(cd, true);
getIrAggr(cd, true);
// make sure all fields really get their ir field
for (auto vd : cd->fields) {
@ -67,11 +67,6 @@ void DtoResolveClass(ClassDeclaration *cd) {
}
getIrField(vd, true);
}
// interface only emit typeinfo and classinfo
if (cd->isInterfaceDeclaration()) {
irAggr->initializeInterface();
}
}
////////////////////////////////////////////////////////////////////////////////