FIR: adapt to changes in IR interface
JvmGeneratorExtensionsImpl, JvmIrCodegenFactory need new arguments.
This commit is contained in:
committed by
TeamCityServer
parent
20b76d4149
commit
c3a94e1e62
+6
-2
@@ -158,14 +158,18 @@ object FirKotlinToJvmBytecodeCompiler {
|
|||||||
performanceManager?.notifyGenerationStarted()
|
performanceManager?.notifyGenerationStarted()
|
||||||
|
|
||||||
performanceManager?.notifyIRTranslationStarted()
|
performanceManager?.notifyIRTranslationStarted()
|
||||||
val extensions = JvmGeneratorExtensionsImpl()
|
val extensions = JvmGeneratorExtensionsImpl(projectConfiguration)
|
||||||
val (moduleFragment, symbolTable, components) = firAnalyzerFacade.convertToIr(extensions)
|
val (moduleFragment, symbolTable, components) = firAnalyzerFacade.convertToIr(extensions)
|
||||||
|
|
||||||
performanceManager?.notifyIRTranslationFinished()
|
performanceManager?.notifyIRTranslationFinished()
|
||||||
|
|
||||||
val dummyBindingContext = NoScopeRecordCliBindingTrace().bindingContext
|
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
|
// Create and initialize the module and its dependencies
|
||||||
val container = TopDownAnalyzerFacadeForJVM.createContainer(
|
val container = TopDownAnalyzerFacadeForJVM.createContainer(
|
||||||
|
|||||||
Reference in New Issue
Block a user