JVM IR: support value classes only when feature is enabled

Remove NeedsToVisit because it doesn't really help with performance, and
it significantly increases code complexity.
This commit is contained in:
Alexander Udalov
2023-08-24 16:45:16 +02:00
committed by Space Team
parent 2dee47a8c1
commit 12bbdebed2
13 changed files with 41 additions and 262 deletions
@@ -30,7 +30,7 @@ open class ScopeWithIr(val scope: Scope, val irElement: IrElement)
abstract class IrElementTransformerVoidWithContext : IrElementTransformerVoid() {
protected open val scopeStack = mutableListOf<ScopeWithIr>()
private val scopeStack = mutableListOf<ScopeWithIr>()
protected open fun createScope(declaration: IrSymbolOwner): ScopeWithIr =
ScopeWithIr(Scope(declaration.symbol), declaration)