diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/ir/util/IrUnboundSymbolReplacer.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/ir/util/IrUnboundSymbolReplacer.kt index 66df0517001..13116d89993 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/ir/util/IrUnboundSymbolReplacer.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/ir/util/IrUnboundSymbolReplacer.kt @@ -19,36 +19,6 @@ import org.jetbrains.kotlin.ir.symbols.* import org.jetbrains.kotlin.ir.types.toKotlinType import org.jetbrains.kotlin.ir.visitors.* -@Deprecated("") -internal fun IrModuleFragment.replaceUnboundSymbols(context: Context) { - val collector = DeclarationSymbolCollector() - with(collector) { - with(irBuiltins) { - for (op in arrayOf(eqeqeqSymbol, eqeqSymbol, throwNpeSymbol, noWhenBranchMatchedExceptionSymbol) + - lessFunByOperandType.values + - lessOrEqualFunByOperandType.values + - greaterOrEqualFunByOperandType.values + - greaterFunByOperandType.values + - ieee754equalsFunByOperandType.values) { - register(op) - } - } - } - this.acceptVoid(collector) - - val symbolTable = context.ir.symbols.symbolTable - - this.transformChildrenVoid(IrUnboundSymbolReplacer(symbolTable, collector.descriptorToSymbol, context)) - - // Generate missing external stubs: - @Suppress("DEPRECATION") - ExternalDependenciesGenerator( - context.moduleDescriptor, - symbolTable = context.psi2IrGeneratorContext.symbolTable, - irBuiltIns = context.irBuiltIns - ).generateUnboundSymbolsAsDependencies() -} - private fun IrModuleFragment.mergeFrom(other: IrModuleFragment): Unit { assert(this.files.isEmpty()) assert(other.files.isEmpty())