Merge pull request #12585 from anemet/save-opt-record

This commit is contained in:
swift-ci
2017-10-27 11:09:50 -07:00
committed by GitHub
17 changed files with 311 additions and 27 deletions

View File

@@ -1305,6 +1305,9 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
!Args.hasArg(OPT_disable_mandatory_semantic_arc_opts);
Opts.EnableLargeLoadableTypes |= Args.hasArg(OPT_enable_large_loadable_types);
if (const Arg *A = Args.getLastArg(OPT_save_optimization_record_path))
Opts.OptRecordFile = A->getValue();
if (Args.hasArg(OPT_debug_on_sil)) {
// Derive the name of the SIL file for debugging from
// the regular outputfile.