IR: remove deprecated constructors of IrFunctionImpl
(cherry picked from commit f2ffcc8b4d84d26c36e50b6de7460178e4f74681)
This commit is contained in:
committed by
Vasily Levchenko
parent
7cc6edc3ae
commit
db1ac079b0
+16
-11
@@ -5,7 +5,10 @@
|
|||||||
|
|
||||||
package org.jetbrains.kotlin.backend.konan
|
package org.jetbrains.kotlin.backend.konan
|
||||||
|
|
||||||
import org.jetbrains.kotlin.backend.common.ir.*
|
import org.jetbrains.kotlin.backend.common.ir.copyTo
|
||||||
|
import org.jetbrains.kotlin.backend.common.ir.createDispatchReceiverParameter
|
||||||
|
import org.jetbrains.kotlin.backend.common.ir.createParameterDeclarations
|
||||||
|
import org.jetbrains.kotlin.backend.common.ir.simpleFunctions
|
||||||
import org.jetbrains.kotlin.backend.konan.descriptors.findPackage
|
import org.jetbrains.kotlin.backend.konan.descriptors.findPackage
|
||||||
import org.jetbrains.kotlin.builtins.functions.FunctionClassDescriptor
|
import org.jetbrains.kotlin.builtins.functions.FunctionClassDescriptor
|
||||||
import org.jetbrains.kotlin.descriptors.*
|
import org.jetbrains.kotlin.descriptors.*
|
||||||
@@ -136,16 +139,18 @@ internal class BuiltInFictitiousFunctionIrClassFactory(
|
|||||||
descriptor: FunctionDescriptor,
|
descriptor: FunctionDescriptor,
|
||||||
origin: IrDeclarationOrigin,
|
origin: IrDeclarationOrigin,
|
||||||
returnType: IrType
|
returnType: IrType
|
||||||
) = symbolTable?.declareSimpleFunction(descriptor) {
|
): IrSimpleFunction {
|
||||||
IrFunctionImpl(
|
val functionFactory: (IrSimpleFunctionSymbol) -> IrSimpleFunction = {
|
||||||
SYNTHETIC_OFFSET, SYNTHETIC_OFFSET, origin,
|
with(descriptor) {
|
||||||
it, returnType, descriptor
|
IrFunctionImpl(
|
||||||
)
|
SYNTHETIC_OFFSET, SYNTHETIC_OFFSET, origin, it, name, visibility, modality, returnType,
|
||||||
} ?: IrFunctionImpl(
|
isInline, isExternal, isTailrec, isSuspend, isOperator, isExpect
|
||||||
SYNTHETIC_OFFSET, SYNTHETIC_OFFSET, origin,
|
)
|
||||||
descriptor,
|
}
|
||||||
returnType
|
}
|
||||||
)
|
return symbolTable?.declareSimpleFunction(descriptor, functionFactory)
|
||||||
|
?: functionFactory(IrSimpleFunctionSymbolImpl(descriptor))
|
||||||
|
}
|
||||||
|
|
||||||
private val createClassLambda = { s: IrClassSymbol, d: ClassDescriptor ->
|
private val createClassLambda = { s: IrClassSymbol, d: ClassDescriptor ->
|
||||||
IrClassImpl(offset, offset, DECLARATION_ORIGIN_FUNCTION_CLASS, s, d)
|
IrClassImpl(offset, offset, DECLARATION_ORIGIN_FUNCTION_CLASS, s, d)
|
||||||
|
|||||||
Reference in New Issue
Block a user