[Native][LTO] Drop unused module descriptor

This commit is contained in:
Sergey Bogolepov
2023-12-12 13:51:06 +02:00
committed by Space Team
parent 14c38aba14
commit 6556f4fceb
3 changed files with 3 additions and 3 deletions
@@ -37,7 +37,7 @@ internal val BuildDFGPhase = createSimpleNamedCompilerPhase<NativeGenerationStat
postactions = getDefaultIrActions(),
outputIfNotEnabled = { _, _, generationState, irModule ->
val context = generationState.context
val symbolTable = DataFlowIR.SymbolTable(context, DataFlowIR.Module(irModule.descriptor))
val symbolTable = DataFlowIR.SymbolTable(context, DataFlowIR.Module())
ModuleDFG(emptyMap(), symbolTable)
},
op = { generationState, irModule ->
@@ -160,7 +160,7 @@ internal class ModuleDFGBuilder(val context: Context, val irModule: IrModuleFrag
private inline fun takeName(block: () -> String) = if (TAKE_NAMES) block() else null
private val module = DataFlowIR.Module(irModule.descriptor)
private val module = DataFlowIR.Module()
private val symbolTable = DataFlowIR.SymbolTable(context, module)
// Possible values of a returnable block.
@@ -109,7 +109,7 @@ internal object DataFlowIR {
}
}
class Module(val descriptor: ModuleDescriptor) {
class Module {
var numberOfFunctions = 0
var numberOfClasses = 0
}