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/PhaseDescriptor.java | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'sources/scalac/PhaseDescriptor.java') diff --git a/sources/scalac/PhaseDescriptor.java b/sources/scalac/PhaseDescriptor.java index 0316a80215..6597dc9e5e 100644 --- a/sources/scalac/PhaseDescriptor.java +++ b/sources/scalac/PhaseDescriptor.java @@ -2,10 +2,10 @@ ** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala ** ** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL ** ** /_____/\____/\___/\____/____/ ** -** ** -** $Id$ \* */ +// $Id$ + package scalac; import java.util.*; @@ -33,10 +33,6 @@ public abstract class PhaseDescriptor { return "initializing compiler"; } - public Phase createPhase(Global global) { - return null; - } - /** apply phase to all compilation units */ public void apply(Global global) {} @@ -52,10 +48,6 @@ public abstract class PhaseDescriptor { return "compilation terminated "; } - public Phase createPhase(Global global) { - return null; - } - /** apply phase to all compilation units */ public void apply(Global global) {} @@ -97,10 +89,6 @@ public abstract class PhaseDescriptor { this.id = id; } - /** create a phase - */ - public abstract Phase createPhase(Global global); - /** Assume that `tp' is the info of symbol `sym' before this phase. * Return the info of `sym' after the phase. */ @@ -110,11 +98,7 @@ public abstract class PhaseDescriptor { /** apply phase to all compilation units */ - public void apply(Global global) { - global.start(); - createPhase(global).apply(); - global.stop(taskDescription()); - } + public abstract void apply(Global global); /** check all compilation units */ -- cgit v1.2.3