Fir2Ir: add irProviders to Fir2IrComponents

Removes the last use of DeclarationStubGenerator in the FIR pipeline.
This commit is contained in:
Georgy Bronnikov
2021-12-09 15:52:47 +03:00
committed by Alexander Udalov
parent 13d4d60afa
commit 3f66b31a47
9 changed files with 13 additions and 24 deletions
@@ -344,7 +344,7 @@ object FirKotlinToJvmBytecodeCompiler {
generationState.beforeCompile()
generationState.oldBEInitTrace(ktFiles)
codegenFactory.generateModuleInFrontendIRMode(
generationState, moduleFragment, symbolTable, extensions, FirJvmBackendExtension(session, components)
generationState, moduleFragment, symbolTable, components.irProviders, extensions, FirJvmBackendExtension(session, components)
) {
performanceManager?.notifyIRLoweringFinished()
performanceManager?.notifyIRGenerationStarted()
@@ -241,7 +241,7 @@ fun generateCodeFromIr(
generationState.beforeCompile()
codegenFactory.generateModuleInFrontendIRMode(
generationState, input.irModuleFragment, input.symbolTable, input.extensions,
generationState, input.irModuleFragment, input.symbolTable, input.components.irProviders, input.extensions,
FirJvmBackendExtension(input.firSession, input.components)
) {
performanceManager?.notifyIRLoweringFinished()