mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 08:30:47 +03:00
Refactor generation of interface vtbls for classes
This commit is contained in:
parent
e9021fd6c8
commit
3f452646f5
4 changed files with 80 additions and 88 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue