From e2a09f258a66f71ea90e65b645d8a03b1a64be71 Mon Sep 17 00:00:00 2001 From: paltherr Date: Fri, 21 Mar 2003 16:42:56 +0000 Subject: - Removed method createPhase in class PhaseDesc... - Removed method createPhase in class PhaseDescriptor Made method apply - abstract in class PhaseDescriptor Implemented method apply in all - subclasses of class PhaseDescriptor --- sources/scalac/backend/jvm/GenJVMPhase.java | 5 ++--- sources/scalac/backend/msil/GenMSILPhase.java | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'sources/scalac/backend') diff --git a/sources/scalac/backend/jvm/GenJVMPhase.java b/sources/scalac/backend/jvm/GenJVMPhase.java index 9511e3f770..bdfb7bc02f 100644 --- a/sources/scalac/backend/jvm/GenJVMPhase.java +++ b/sources/scalac/backend/jvm/GenJVMPhase.java @@ -2,7 +2,6 @@ ** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala ** ** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL ** ** /_____/\____/\___/\____/____/ ** -** ** \* */ // $OldId: GenJVMPhase.java,v 1.1 2002/09/03 12:13:08 schinz Exp $ @@ -31,8 +30,8 @@ public class GenJVMPhase extends PhaseDescriptor { return "generated JVM code"; } - public Phase createPhase(Global global) { - return new GenJVM(global, this); + public void apply(Global global) { + new GenJVM(global, this).apply(); } } diff --git a/sources/scalac/backend/msil/GenMSILPhase.java b/sources/scalac/backend/msil/GenMSILPhase.java index 9239fdf625..3156db748d 100644 --- a/sources/scalac/backend/msil/GenMSILPhase.java +++ b/sources/scalac/backend/msil/GenMSILPhase.java @@ -2,7 +2,6 @@ ** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala ** ** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL ** ** /_____/\____/\___/\____/____/ ** -** ** \* */ // $Id$ @@ -38,8 +37,8 @@ public class GenMSILPhase extends PhaseDescriptor { return "generated MSIL code"; } - public Phase createPhase(Global global) { - return new GenMSIL(global, this); + public void apply(Global global) { + new GenMSIL(global, this).apply(); } } -- cgit v1.2.3