mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add support for -Oplayground and add some sanity tests for it.
Right now this is just like -Onone. We will add further optimizations as needed. <rdar://problem/19328293> Swift SVN r25377
This commit is contained in:
@@ -785,6 +785,9 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
// Removal of cond_fail (overflow on binary operations).
|
||||
Opts.RemoveRuntimeAsserts = true;
|
||||
Opts.AssertConfig = SILOptions::Fast;
|
||||
} else if (A->getOption().matches(OPT_Oplayground)) {
|
||||
// For now -Oplayground is equivalent to -Onone.
|
||||
IRGenOpts.Optimize = false;
|
||||
} else {
|
||||
assert(A->getOption().matches(OPT_O));
|
||||
IRGenOpts.Optimize = true;
|
||||
|
||||
Reference in New Issue
Block a user