aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdmund Noble <edmundnoble@gmail.com>2016-07-06 17:35:29 -0400
committerEdmund Noble <edmundnoble@gmail.com>2016-07-06 17:35:29 -0400
commite82087a085366a15384c4cdbd23e25b4b24e485a (patch)
treeb5d358272bf0edc109e5e84cfa18822f31562b61 /src
parent8a39160e8375dd1707f686e13a2a796aed310ef7 (diff)
downloaddotty-e82087a085366a15384c4cdbd23e25b4b24e485a.tar.gz
dotty-e82087a085366a15384c4cdbd23e25b4b24e485a.tar.bz2
dotty-e82087a085366a15384c4cdbd23e25b4b24e485a.zip
Revert "Implement -print as -Xprint:(last phase)"
This reverts commit 8a39160e8375dd1707f686e13a2a796aed310ef7.
Diffstat (limited to 'src')
-rw-r--r--src/dotty/tools/dotc/Run.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/Run.scala b/src/dotty/tools/dotc/Run.scala
index f2596e929..928a59214 100644
--- a/src/dotty/tools/dotc/Run.scala
+++ b/src/dotty/tools/dotc/Run.scala
@@ -62,8 +62,7 @@ class Run(comp: Compiler)(implicit ctx: Context) {
units = phase.runOn(units)
def foreachUnit(op: Context => Unit)(implicit ctx: Context): Unit =
for (unit <- units) op(ctx.fresh.setPhase(phase.next).setCompilationUnit(unit))
- if (ctx.settings.Xprint.value.containsPhase(phase) ||
- (ctx.settings.print.value && phase == ctx.allPhases.last))
+ if (ctx.settings.Xprint.value.containsPhase(phase))
foreachUnit(printTree)
ctx.informTime(s"$phase ", start)
}