backend: Move string concatenation after inlining
This commit is contained in:
+3
-4
@@ -17,13 +17,12 @@ internal class KonanLower(val context: Context) {
|
|||||||
fun lower(irFile: IrFile) {
|
fun lower(irFile: IrFile) {
|
||||||
val phaser = PhaseManager(context)
|
val phaser = PhaseManager(context)
|
||||||
|
|
||||||
// TODO: consider place of the pass.
|
|
||||||
phaser.phase(KonanPhase.LOWER_STRING_CONCAT) {
|
|
||||||
StringConcatenationLowering(context).lower(irFile)
|
|
||||||
}
|
|
||||||
phaser.phase(KonanPhase.LOWER_INLINE) {
|
phaser.phase(KonanPhase.LOWER_INLINE) {
|
||||||
FunctionInlining(context).inline(irFile)
|
FunctionInlining(context).inline(irFile)
|
||||||
}
|
}
|
||||||
|
phaser.phase(KonanPhase.LOWER_STRING_CONCAT) {
|
||||||
|
StringConcatenationLowering(context).lower(irFile)
|
||||||
|
}
|
||||||
phaser.phase(KonanPhase.LOWER_ENUMS) {
|
phaser.phase(KonanPhase.LOWER_ENUMS) {
|
||||||
EnumClassLowering(context).run(irFile)
|
EnumClassLowering(context).run(irFile)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user