[Native][LTO] Drop unused module descriptor
This commit is contained in:
committed by
Space Team
parent
14c38aba14
commit
6556f4fceb
+1
-1
@@ -37,7 +37,7 @@ internal val BuildDFGPhase = createSimpleNamedCompilerPhase<NativeGenerationStat
|
|||||||
postactions = getDefaultIrActions(),
|
postactions = getDefaultIrActions(),
|
||||||
outputIfNotEnabled = { _, _, generationState, irModule ->
|
outputIfNotEnabled = { _, _, generationState, irModule ->
|
||||||
val context = generationState.context
|
val context = generationState.context
|
||||||
val symbolTable = DataFlowIR.SymbolTable(context, DataFlowIR.Module(irModule.descriptor))
|
val symbolTable = DataFlowIR.SymbolTable(context, DataFlowIR.Module())
|
||||||
ModuleDFG(emptyMap(), symbolTable)
|
ModuleDFG(emptyMap(), symbolTable)
|
||||||
},
|
},
|
||||||
op = { generationState, irModule ->
|
op = { generationState, irModule ->
|
||||||
|
|||||||
+1
-1
@@ -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 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)
|
private val symbolTable = DataFlowIR.SymbolTable(context, module)
|
||||||
|
|
||||||
// Possible values of a returnable block.
|
// Possible values of a returnable block.
|
||||||
|
|||||||
+1
-1
@@ -109,7 +109,7 @@ internal object DataFlowIR {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Module(val descriptor: ModuleDescriptor) {
|
class Module {
|
||||||
var numberOfFunctions = 0
|
var numberOfFunctions = 0
|
||||||
var numberOfClasses = 0
|
var numberOfClasses = 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user