summaryrefslogtreecommitdiff
path: root/sources/scalac/backend/msil
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-12-07 14:56:23 +0000
committerpaltherr <paltherr@epfl.ch>2004-12-07 14:56:23 +0000
commitcbd30cf21cbde81a1613226e920c282bd9ebfdf7 (patch)
tree34c75a92abb6dfde4b6881162e22c24fc5fe8c48 /sources/scalac/backend/msil
parentb8c700cd8f89695a9086636a1bd8442ee8d43200 (diff)
downloadscala-cbd30cf21cbde81a1613226e920c282bd9ebfdf7.tar.gz
scala-cbd30cf21cbde81a1613226e920c282bd9ebfdf7.tar.bz2
scala-cbd30cf21cbde81a1613226e920c282bd9ebfdf7.zip
- Removed method Transformer.apply(CompilationU...
- Removed method Transformer.apply(CompilationUnit[] - Added method ) Phase.apply(CompilationUnit - Adapted most phases to implement method ) Phase.apply(CompilationUnit instead of Phase.apply(CompilationUnit[] )
Diffstat (limited to 'sources/scalac/backend/msil')
-rw-r--r--sources/scalac/backend/msil/GenMSILPhase.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/scalac/backend/msil/GenMSILPhase.java b/sources/scalac/backend/msil/GenMSILPhase.java
index a12a0c2d52..0df65a1eb8 100644
--- a/sources/scalac/backend/msil/GenMSILPhase.java
+++ b/sources/scalac/backend/msil/GenMSILPhase.java
@@ -49,9 +49,14 @@ public class GenMSILPhase extends Phase {
tc.init();
tc.collectSymbols(units);
tc.initAssembly();
- for (int i = 0; i < units.length; i++) translator.apply(units[i]);
+ super.apply(units);
tc.saveAssembly();
}
+ /** Applies this phase to the given compilation unit. */
+ public void apply(CompilationUnit unit) {
+ translator.apply(unit);
+ }
+
//########################################################################
}