Support suspend functions lowering changes

(cherry picked from commit f4ac79e39cf9ca8685552ffd28a9595efd0df963)
This commit is contained in:
Anton Bannykh
2020-02-03 13:53:30 +03:00
committed by Vasily Levchenko
parent c4a0f553b0
commit 13f5f1975a
@@ -275,8 +275,11 @@ internal val compileTimeEvaluatePhase = makeKonanFileLoweringPhase(
prerequisite = setOf(varargPhase)
)
internal val coroutinesPhase = makeKonanFileLoweringPhase(
::NativeSuspendFunctionsLowering,
internal val coroutinesPhase = makeKonanFileOpPhase(
{ context, irFile ->
NativeSuspendFunctionsLowering(context).lower(irFile)
RemoveSuspendLambdas().lower(irFile)
},
name = "Coroutines",
description = "Coroutines lowering",
prerequisite = setOf(localFunctionsPhase, finallyBlocksPhase)