mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add -O as an alias to -O3. rdar://16782554
Swift SVN r17183
This commit is contained in:
@@ -701,6 +701,9 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
IRGenOpts.DisableAllRuntimeChecks = true;
|
||||
// Removal of cond_fail (overflow on binary operations).
|
||||
Opts.RemoveRuntimeAsserts = true;
|
||||
} else if (!StringRef(A->getValue()).size()) {
|
||||
// -O is an alias to -O3.
|
||||
IRGenOpts.OptLevel = MaxLevel;
|
||||
} else {
|
||||
unsigned OptLevel;
|
||||
if (StringRef(A->getValue()).getAsInteger(10, OptLevel) ||
|
||||
|
||||
Reference in New Issue
Block a user