aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Compiler.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-02-11 09:17:07 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-11 09:17:15 +0100
commitdf7d8914aa139e8961db6ce0651e09b118d8bab2 (patch)
tree4285b0d129e7869dc9f727f379a293ab36fc6254 /src/dotty/tools/dotc/Compiler.scala
parentc16ead8d78936cab3dada7aa5e70eeacc5f576d1 (diff)
downloaddotty-df7d8914aa139e8961db6ce0651e09b118d8bab2.tar.gz
dotty-df7d8914aa139e8961db6ce0651e09b118d8bab2.tar.bz2
dotty-df7d8914aa139e8961db6ce0651e09b118d8bab2.zip
New phase to drop empty companion objects
Diffstat (limited to 'src/dotty/tools/dotc/Compiler.scala')
-rw-r--r--src/dotty/tools/dotc/Compiler.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/Compiler.scala b/src/dotty/tools/dotc/Compiler.scala
index 199657864..987c533e7 100644
--- a/src/dotty/tools/dotc/Compiler.scala
+++ b/src/dotty/tools/dotc/Compiler.scala
@@ -77,6 +77,7 @@ class Compiler {
new GetClass), // getClass transformation should be applied to specialized methods
List(new LambdaLift, // in this mini-phase block scopes are incorrect. No phases that rely on scopes should be here
new ElimStaticThis,
+ new DropEmptyCompanions,
new Flatten,
new RestoreScopes),
List(/*new PrivateToStatic,*/