[IR] Remove unused Ir.irModule property
It is required for the Native backend refactoring where `Context` does not contain a reference for any particular IrModuleFragment.
This commit is contained in:
committed by
Space Team
parent
3355f04fa1
commit
c22285f824
+2
-4
@@ -40,8 +40,6 @@ import org.jetbrains.kotlin.ir.util.SymbolTable
|
||||
import org.jetbrains.kotlin.konan.library.KonanLibraryLayout
|
||||
import org.jetbrains.kotlin.konan.target.Architecture
|
||||
import org.jetbrains.kotlin.konan.target.KonanTarget
|
||||
import org.jetbrains.kotlin.library.SerializedIrModule
|
||||
import org.jetbrains.kotlin.library.SerializedMetadata
|
||||
import org.jetbrains.kotlin.name.FqName
|
||||
import org.jetbrains.kotlin.name.Name
|
||||
import org.jetbrains.kotlin.resolve.BindingContext
|
||||
@@ -83,7 +81,7 @@ internal class Context(
|
||||
irModules = psiToIrOutput.irModules
|
||||
irModule = psiToIrOutput.irModule
|
||||
expectDescriptorToSymbol = psiToIrOutput.expectDescriptorToSymbol
|
||||
ir = KonanIr(this, psiToIrOutput.irModule)
|
||||
ir = KonanIr(this)
|
||||
ir.symbols = psiToIrOutput.symbols
|
||||
if (psiToIrOutput.irLinker is KonanIrLinker) {
|
||||
irLinker = psiToIrOutput.irLinker
|
||||
@@ -158,7 +156,7 @@ internal class Context(
|
||||
throw Error("Another IrModule in the context.")
|
||||
}
|
||||
field = module!!
|
||||
ir = KonanIr(this, module)
|
||||
ir = KonanIr(this)
|
||||
}
|
||||
|
||||
override lateinit var ir: KonanIr
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ object KonanNameConventions {
|
||||
}
|
||||
|
||||
// This is what Context collects about IR.
|
||||
internal class KonanIr(context: Context, irModule: IrModuleFragment): Ir<Context>(context, irModule) {
|
||||
internal class KonanIr(context: Context): Ir<Context>(context) {
|
||||
override var symbols: KonanSymbols by Delegates.notNull()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user