[FIR2IR] Make ExternalPackageParentPatcher a lowering

This is needed for two reasons:
1. Consistency
2. It should run after compiler plugins, which are now runs after fir2ir
   is finished for all modules

^KT-56173
This commit is contained in:
Dmitriy Novozhilov
2023-07-05 12:21:16 +03:00
committed by Space Team
parent 8e73d5a54a
commit fd87d722c1
8 changed files with 120 additions and 63 deletions
@@ -331,7 +331,8 @@ open class JvmIrCodegenFactory(
val phases = if (evaluatorFragmentInfoForPsi2Ir != null) jvmFragmentLoweringPhases else jvmLoweringPhases
val phaseConfig = customPhaseConfig ?: PhaseConfig(phases)
val context = JvmBackendContext(
state, irModuleFragment.irBuiltins, symbolTable, phaseConfig, extensions, backendExtension, irSerializer, irPluginContext
state, irModuleFragment.irBuiltins, symbolTable, phaseConfig, extensions,
backendExtension, irSerializer, JvmIrDeserializerImpl(), irProviders, irPluginContext
)
if (evaluatorFragmentInfoForPsi2Ir != null) {
context.localDeclarationsLoweringData = mutableMapOf()