summaryrefslogtreecommitdiff
path: root/sources/scalac/Global.java
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-12-08 15:16:55 +0000
committerpaltherr <paltherr@epfl.ch>2004-12-08 15:16:55 +0000
commit1aa40dd9e33751be7fd1e25bbc178b3937f01b54 (patch)
treeba786f2fe38375316f18ef8ba120317c17aedfca /sources/scalac/Global.java
parent08661fd29fa6446cd90ab0d38f2db8e3fdc9e8ac (diff)
downloadscala-1aa40dd9e33751be7fd1e25bbc178b3937f01b54.tar.gz
scala-1aa40dd9e33751be7fd1e25bbc178b3937f01b54.tar.bz2
scala-1aa40dd9e33751be7fd1e25bbc178b3937f01b54.zip
- Removed GenJVMPhase, GenMSILPhse and GenJVMFr...
- Removed GenJVMPhase, GenMSILPhse and GenJVMFromICodePhase. - Added method Global.dump. - Added a call to Global.dump in class Main. - The backends are no longer phases. They are now invoked by the new method dump of class Global.
Diffstat (limited to 'sources/scalac/Global.java')
-rw-r--r--sources/scalac/Global.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java
index ec8f20ab81..141d6ec140 100644
--- a/sources/scalac/Global.java
+++ b/sources/scalac/Global.java
@@ -273,14 +273,7 @@ public abstract class Global {
// if (!optimize) PHASE.remove(args.phases.OPTIMIZE);
// TODO: Enable TailCall for other backends when they handle LabelDefs
if (!runTimeTypes) args.phases.TYPESASVALUES.addSkipFlag();
- if (target != TARGET_MSIL) args.phases.GENMSIL.addSkipFlag();
- if (target != TARGET_JVM) args.phases.GENJVM.addSkipFlag();
- if (target != TARGET_JVMFROMICODE) {
- args.phases.ICODE.addSkipFlag();
- args.phases.GENJVMFROMICODE.addSkipFlag();
- } else {
- ;//args.phases.ERASURE.addSkipFlag();
- }
+ if (target != TARGET_JVMFROMICODE) args.phases.ICODE.addSkipFlag();
PHASE.freeze();
PhaseDescriptor[] descriptors = PHASE.phases();
for (int i = 0; i <= PHASE.ANALYZER.id(); i++)
@@ -407,7 +400,6 @@ public abstract class Global {
clasz.reset(new SourceCompleter(this, file));
}
}
- symdata.clear();
compiledNow.clear();
treePrinter.end();
return units;
@@ -429,6 +421,8 @@ public abstract class Global {
}
}
+ public abstract void dump(CompilationUnit[] units);
+
private void print(CompilationUnit[] units) {
if (currentPhase.id == PHASE.MAKEBOXINGEXPLICIT.id()) {
boolean html = args.printer.value.equals(PRINTER_HTML);