From 5d956bda6ba36bf9cfc9574d758f4043691fa2f6 Mon Sep 17 00:00:00 2001 From: paltherr Date: Sat, 6 Sep 2003 14:34:45 +0000 Subject: - Added a phase change before printing to get r... - Added a phase change before printing to get right symbol types --- sources/scalac/Global.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'sources/scalac/Global.java') diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index 5c2249211b..a7b8f1e143 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -292,8 +292,13 @@ public class Global { start(); currentPhase.apply(units); stop(currentPhase.descriptor.taskDescription()); - if (currentPhase.descriptor.hasPrintFlag()) + if (currentPhase.descriptor.hasPrintFlag()) { + // go to next phase to print symbols with their new type + boolean next = currentPhase.next != null; + if (next) currentPhase = currentPhase.next; currentPhase.print(this); + if (next) currentPhase = currentPhase.prev; + } if (currentPhase.descriptor.hasGraphFlag()) currentPhase.graph(this); if (currentPhase.descriptor.hasCheckFlag()) @@ -322,8 +327,13 @@ public class Global { start(); currentPhase.apply(new Unit[] {unit}); // !!! pb with Analyzer stop(currentPhase.descriptor.taskDescription()); - if (currentPhase.descriptor.hasPrintFlag()) + if (currentPhase.descriptor.hasPrintFlag()) { + // go to next phase to print symbols with their new type + boolean next = currentPhase.next != null; + if (next) currentPhase = currentPhase.next; currentPhase.print(this); + if (next) currentPhase = currentPhase.prev; + } if (currentPhase.descriptor.hasGraphFlag()) currentPhase.graph(this); if (currentPhase.descriptor.hasCheckFlag()) -- cgit v1.2.3