JVM: move loadCompiledInlineFunction out of InlineCodegen

This commit is contained in:
pyos
2021-05-27 16:03:18 +02:00
committed by max-kammerer
parent 8307367f90
commit 7dbf08ae1c
5 changed files with 50 additions and 51 deletions
@@ -106,7 +106,7 @@ class IrSourceCompilerForInline(
override fun compileInlineFunction(jvmSignature: JvmMethodSignature): SMAPAndMethodNode =
callee.parentClassId?.let { containerId ->
InlineCodegen.loadCompiledInlineFunction(containerId, jvmSignature.asmMethod, callee.isSuspend, callee.hasMangledReturnType, state)
loadCompiledInlineFunction(containerId, jvmSignature.asmMethod, callee.isSuspend, callee.hasMangledReturnType, state)
} ?: ClassCodegen.getOrCreate(callee.parentAsClass, codegen.context).generateMethodNode(callee)
override fun hasFinallyBlocks() = data.hasFinallyBlocks()