mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[frontend] Add support for -print-stats.
Swift SVN r11190
This commit is contained in:
@@ -59,6 +59,10 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
Opts.DelayedFunctionBodyParsing = true;
|
||||
}
|
||||
|
||||
if (Args.hasArg(OPT_print_stats)) {
|
||||
Opts.PrintStats = true;
|
||||
}
|
||||
|
||||
for (const Arg *A : make_range(Args.filtered_begin(OPT_INPUT),
|
||||
Args.filtered_end())) {
|
||||
Opts.InputFilenames.push_back(A->getValue());
|
||||
|
||||
Reference in New Issue
Block a user