summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Global.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2011-07-08 16:19:02 +0000
committerMartin Odersky <odersky@gmail.com>2011-07-08 16:19:02 +0000
commit49ebb3ec42707e956ba17800f2e58f6c08d22076 (patch)
treeff912e4681172bb89bc4d9a877e6d09e23f0bc81 /src/compiler/scala/tools/nsc/Global.scala
parent9f4e1b050f5d83521e895a9f7b69a2169ec64a8a (diff)
downloadscala-49ebb3ec42707e956ba17800f2e58f6c08d22076.tar.gz
scala-49ebb3ec42707e956ba17800f2e58f6c08d22076.tar.bz2
scala-49ebb3ec42707e956ba17800f2e58f6c08d22076.zip
ByteCodecs move to reflect.internal.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index 36f6b315c2..e2c53b9676 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -1232,20 +1232,20 @@ class Global(var currentSettings: Settings, var reporter: Reporter) extends Symb
}
}
- /** Returns the file with the given suffix for the given class. Used for icode writing. */
- def getFile(clazz: Symbol, suffix: String): File = {
+ def getFile(source: AbstractFile, segments: Array[String], suffix: String): File = {
val outDir = Path(
- settings.outputDirs.outputDirFor(clazz.sourceFile).path match {
+ settings.outputDirs.outputDirFor(source).path match {
case "" => "."
case path => path
}
)
- val segments = clazz.fullName split '.'
val dir = segments.init.foldLeft(outDir)(_ / _).createDirectory()
-
new File(dir.path, segments.last + suffix)
}
+ /** Returns the file with the given suffix for the given class. Used for icode writing. */
+ def getFile(clazz: Symbol, suffix: String): File = getFile(clazz.sourceFile, clazz.fullName split '.', suffix)
+
private def writeICode() {
val printer = new icodes.TextPrinter(null, icodes.linearizer)
icodes.classes.values.foreach((cls) => {