aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Compiler.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-09-08 10:39:44 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-09-14 13:36:14 +0200
commit8a538ce728ed61c42ddb66f196dd217b8451bf9e (patch)
tree2241b2c4fe94918f38e23ac30d6ed5b64e479651 /src/dotty/tools/dotc/Compiler.scala
parent8fc5835ca13ef5ab47b29d5240d5e8d79a870b7c (diff)
downloaddotty-8a538ce728ed61c42ddb66f196dd217b8451bf9e.tar.gz
dotty-8a538ce728ed61c42ddb66f196dd217b8451bf9e.tar.bz2
dotty-8a538ce728ed61c42ddb66f196dd217b8451bf9e.zip
Move literalize functionality to PostTyper
Now, PostTyper replaces constant expressions with literals. If we wait any longer then any tree rewriting of an application node would have to do constant folding again, which is a hassle. With the previous late Literalize phase, constant expressions consisting of operations and arguments lost their constantness in PostTyper.
Diffstat (limited to 'src/dotty/tools/dotc/Compiler.scala')
-rw-r--r--src/dotty/tools/dotc/Compiler.scala1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/Compiler.scala b/src/dotty/tools/dotc/Compiler.scala
index e4b328a82..c537d8885 100644
--- a/src/dotty/tools/dotc/Compiler.scala
+++ b/src/dotty/tools/dotc/Compiler.scala
@@ -56,7 +56,6 @@ class Compiler {
List(new VCInlineMethods,
new SeqLiterals,
new InterceptedMethods,
- new Literalize,
new Getters,
new ClassTags,
new ElimByName,