FIR: adapt to changes in IR interface

JvmGeneratorExtensionsImpl, JvmIrCodegenFactory need new arguments.
This commit is contained in:
Georgy Bronnikov
2021-06-16 14:25:40 +03:00
committed by TeamCityServer
parent 20b76d4149
commit c3a94e1e62
@@ -158,14 +158,18 @@ object FirKotlinToJvmBytecodeCompiler {
performanceManager?.notifyGenerationStarted()
performanceManager?.notifyIRTranslationStarted()
val extensions = JvmGeneratorExtensionsImpl()
val extensions = JvmGeneratorExtensionsImpl(projectConfiguration)
val (moduleFragment, symbolTable, components) = firAnalyzerFacade.convertToIr(extensions)
performanceManager?.notifyIRTranslationFinished()
val dummyBindingContext = NoScopeRecordCliBindingTrace().bindingContext
val codegenFactory = JvmIrCodegenFactory(moduleConfiguration.get(CLIConfigurationKeys.PHASE_CONFIG) ?: PhaseConfig(jvmPhases))
val codegenFactory = JvmIrCodegenFactory(
projectConfiguration,
moduleConfiguration.get(CLIConfigurationKeys.PHASE_CONFIG) ?: PhaseConfig(jvmPhases),
jvmGeneratorExtensions = extensions
)
// Create and initialize the module and its dependencies
val container = TopDownAnalyzerFacadeForJVM.createContainer(