diff options
author | paltherr <paltherr@epfl.ch> | 2003-03-21 16:42:56 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-03-21 16:42:56 +0000 |
commit | e2a09f258a66f71ea90e65b645d8a03b1a64be71 (patch) | |
tree | 22c62210a3cfc5fa5eb28d657399e560cf738e1d /sources/scalac/backend | |
parent | 787d4bb9dbc540a61632c1f234a54ab74a69609c (diff) | |
download | scala-e2a09f258a66f71ea90e65b645d8a03b1a64be71.tar.gz scala-e2a09f258a66f71ea90e65b645d8a03b1a64be71.tar.bz2 scala-e2a09f258a66f71ea90e65b645d8a03b1a64be71.zip |
- 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
Diffstat (limited to 'sources/scalac/backend')
-rw-r--r-- | sources/scalac/backend/jvm/GenJVMPhase.java | 5 | ||||
-rw-r--r-- | sources/scalac/backend/msil/GenMSILPhase.java | 5 |
2 files changed, 4 insertions, 6 deletions
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(); } } |