Run ExpectDeclarationsRemoving in the JVM_IR backend.

This commit is contained in:
Steven Schäfer
2019-03-11 15:23:35 +01:00
committed by max-kammerer
parent 82002e5e73
commit 4c8425caeb
18 changed files with 10 additions and 18 deletions
@@ -37,6 +37,12 @@ private fun makePatchParentsPhase(number: Int) = namedIrFilePhase(
nlevels = 0
)
private val expectDeclarationsRemovingPhase = makeIrFilePhase(
::ExpectDeclarationsRemoving,
name = "ExpectDeclarationsRemoving",
description = "Remove expect declaration from module fragment"
)
private val propertiesPhase = makeIrFilePhase(
{ context ->
PropertiesLowering(context, JvmLoweredDeclarationOrigin.SYNTHETIC_METHOD_FOR_PROPERTY_ANNOTATIONS) { propertyName ->
@@ -51,7 +57,8 @@ private val propertiesPhase = makeIrFilePhase(
internal val jvmPhases = namedIrFilePhase(
name = "IrLowering",
description = "IR lowering",
lower = jvmCoercionToUnitPhase then
lower = expectDeclarationsRemovingPhase then
jvmCoercionToUnitPhase then
fileClassPhase then
kCallableNamePropertyPhase then