summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-12-03 14:51:33 +0000
committerpaltherr <paltherr@epfl.ch>2004-12-03 14:51:33 +0000
commit162a5f7755a7c6c083c96f752a5cbc4f846bb31c (patch)
tree1f781ec61cff0c2d3506e5fcae08198a9f768165
parent2080c5a1cc2736778264a2485b2c3398ad7d0a03 (diff)
downloadscala-162a5f7755a7c6c083c96f752a5cbc4f846bb31c.tar.gz
scala-162a5f7755a7c6c083c96f752a5cbc4f846bb31c.tar.bz2
scala-162a5f7755a7c6c083c96f752a5cbc4f846bb31c.zip
- Removed graph methods in class Phase
-rw-r--r--sources/scalac/Global.java3
-rw-r--r--sources/scalac/Phase.java11
2 files changed, 1 insertions, 13 deletions
diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java
index 7dccabfc60..a5f82f3979 100644
--- a/sources/scalac/Global.java
+++ b/sources/scalac/Global.java
@@ -394,8 +394,7 @@ public abstract class Global {
currentPhase.apply(units);
stop(currentPhase.descriptor.taskDescription());
if (currentPhase.descriptor.hasPrintFlag()) print();
- if (currentPhase.descriptor.hasGraphFlag())
- currentPhase.graph(this);
+ // if (currentPhase.descriptor.hasGraphFlag()) // !!!
// if (currentPhase.descriptor.hasCheckFlag()) // !!!
if (currentPhase == PHASE.PARSER.phase()) fix1();
if (currentPhase == PHASE.ANALYZER.phase()) fix2();
diff --git a/sources/scalac/Phase.java b/sources/scalac/Phase.java
index 7d9c785a13..25b046743a 100644
--- a/sources/scalac/Phase.java
+++ b/sources/scalac/Phase.java
@@ -65,17 +65,6 @@ public abstract class Phase {
/** Applies this phase to the given compilation units. */
public abstract void apply(CompilationUnit[] units);
- /** Graphs all compilation units. */
- public void graph(Global global) {
- for (int i = 0; i < global.units.length; i++) graph(global.units[i]);
- }
-
- /** Graphs the result of this phase for the given compilation unit. */
- public void graph(CompilationUnit unit) {
- // !!! new scala.compiler.gdl.TreePrinter().printInFile(
- // !!! unit, unit.source + "-" + name() + ".gdl");
- }
-
/** Returns the name of this phase. */
public final String toString() {
return descriptor.name();