Support function inlining lowering changes
(cherry picked from commit f161814ee9a82145138c43f2943378e045416716)
This commit is contained in:
committed by
Vasily Levchenko
parent
50c4f1fd41
commit
c4a0f553b0
+5
-1
@@ -89,7 +89,11 @@ internal val arrayConstructorPhase = makeKonanModuleLoweringPhase(
|
||||
internal val inlinePhase = namedIrModulePhase(
|
||||
lower = object : SameTypeCompilerPhase<Context, IrModuleFragment> {
|
||||
override fun invoke(phaseConfig: PhaseConfig, phaserState: PhaserState<IrModuleFragment>, context: Context, input: IrModuleFragment): IrModuleFragment {
|
||||
FunctionInlining(context).inline(input)
|
||||
FunctionInlining(context).run {
|
||||
input.files.forEach {
|
||||
lower(it)
|
||||
}
|
||||
}
|
||||
return input
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user