Add support for printing SIL with SIL entities sorted by name behind the flag -sil-sort-by-output-names.

This significantly reduces the diff size when diffing the standard
library.

Swift SVN r18700
This commit is contained in:
Michael Gottesman
2014-06-04 05:22:52 +00:00
parent 44734294d6
commit 3ba4ca1b31
8 changed files with 131 additions and 19 deletions

View File

@@ -88,6 +88,8 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
Opts.EmitVerboseSIL |= Args.hasArg(OPT_emit_verbose_sil);
Opts.EmitSortedSIL |= Args.hasArg(OPT_emit_sorted_sil);
Opts.DelayedFunctionBodyParsing |= Args.hasArg(OPT_delayed_function_body_parsing);
Opts.PrintStats |= Args.hasArg(OPT_print_stats);