Add an option to enable a copy-on-write existential implementation

This commit is contained in:
Arnold Schwaighofer
2017-02-17 10:16:32 -08:00
parent cc6045b45a
commit 02589267fd
3 changed files with 10 additions and 0 deletions

View File

@@ -1237,6 +1237,10 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
IRGenOpts.Sanitize = Opts.Sanitize;
}
/// Should we use the copy-on-write implementation of opaque existentials.
/// FIXME: Use during bootstraping this feature. Remove later.
Opts.UseCOWExistentials = Args.hasArg(OPT_enable_cow_existentials);
return false;
}