summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Global.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index 3cf3a9a1bd..99884f746b 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -382,7 +382,7 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
pickler, // serializes symbol tables
refchecks // perform reference and override checking, translate nested objects
) ::: (
- if (forMSIL) List() else List(liftcode) // generate reified trees
+ if (forJVM) List(liftcode) else List() // generate reified trees
) ::: List(
uncurry, // uncurry, translate function values to anonymous classes
tailCalls, // replace tail calls by jumps
@@ -692,6 +692,7 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
}
def forCLDC: Boolean = settings.target.value == "cldc"
+ def forJVM : Boolean = settings.target.value startsWith "jvm"
def forMSIL: Boolean = settings.target.value == "msil"
def onlyPresentation = settings.doc.value