IR: do not copy calls/references in ExpectSymbolTransformer

This is just a refactoring/optimization that makes use of the fact that
IrCall.symbol and other similar fields are now mutable.
This commit is contained in:
Alexander Udalov
2023-06-16 23:28:44 +02:00
committed by Space Team
parent 978553c513
commit bb4d25dfc9
3 changed files with 46 additions and 101 deletions
@@ -115,9 +115,8 @@ fun generateIrForKlibSerialization(
}
if (configuration.get(CommonConfigurationKeys.EXPECT_ACTUAL_LINKER) != true) {
moduleFragment.transform(ExpectDeclarationRemover(psi2IrContext.symbolTable, false), null)
moduleFragment.accept(ExpectDeclarationRemover(psi2IrContext.symbolTable, false), null)
}
return moduleFragment to pluginContext
}