Removed deprecated method which has already been removed from Kotlin
This commit is contained in:
-30
@@ -19,36 +19,6 @@ import org.jetbrains.kotlin.ir.symbols.*
|
|||||||
import org.jetbrains.kotlin.ir.types.toKotlinType
|
import org.jetbrains.kotlin.ir.types.toKotlinType
|
||||||
import org.jetbrains.kotlin.ir.visitors.*
|
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 {
|
private fun IrModuleFragment.mergeFrom(other: IrModuleFragment): Unit {
|
||||||
assert(this.files.isEmpty())
|
assert(this.files.isEmpty())
|
||||||
assert(other.files.isEmpty())
|
assert(other.files.isEmpty())
|
||||||
|
|||||||
Reference in New Issue
Block a user