diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2004-06-22 09:32:13 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2004-06-22 09:32:13 +0000 |
commit | d4014963a321a7748a055bb806b50b70210bbfc0 (patch) | |
tree | 5e554bbaa1d13ef1a45dbfa9444e5d62f52b8a98 /sources/scalac/CompilerCommand.java | |
parent | 51a3f4687bb59df505d6dd7ff28bff451fca4831 (diff) | |
download | scala-d4014963a321a7748a055bb806b50b70210bbfc0.tar.gz scala-d4014963a321a7748a055bb806b50b70210bbfc0.tar.bz2 scala-d4014963a321a7748a055bb806b50b70210bbfc0.zip |
Compiler options for whole program optimization
Diffstat (limited to 'sources/scalac/CompilerCommand.java')
-rw-r--r-- | sources/scalac/CompilerCommand.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sources/scalac/CompilerCommand.java b/sources/scalac/CompilerCommand.java index b47041d665..dd3505b6be 100644 --- a/sources/scalac/CompilerCommand.java +++ b/sources/scalac/CompilerCommand.java @@ -86,6 +86,15 @@ public class CompilerCommand extends CommandParser { public final BooleanOptionParser Xnewmatch; public final BooleanOptionParser XpreserveWS; + /* + * Whole-program optimization options + */ + public final StringOptionParser XrootClass; + public final StringOptionParser XappFile; + public final StringOptionParser XdotFile; + public final BooleanOptionParser Xrta; + public final BooleanOptionParser Xinline; + //######################################################################## // Public Constructors @@ -250,6 +259,26 @@ public class CompilerCommand extends CommandParser { "XpreserveWS", "don't trim whitespace in XML literals", false), + this.XrootClass = new StringOptionParser(this, + "XrootClass", "Specify the root class of the global application", + "class", "$"), + + this.XappFile = new StringOptionParser(this, + "XappFile", "Specify the filename where to dump the whole-application inferred from the rootclass", + "file", "app.txt"), + + this.XdotFile = new StringOptionParser(this, + "XdotFile", "Specify the filename where to print the AST in graphviz dot format", + "file", "$"), + + this.Xrta = new BooleanOptionParser(this, + "Xrta", "Perform Rapid Type analysis for method call resolution", + false), + + this.Xinline = new BooleanOptionParser(this, + "Xinline", "Inline method calls that can be resolved statically", + false), + this.unknown_options = new UnknownOptionParser(this), this.files = new ScalaFileArgumentParser(this), |