mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[frontend] Add support for -disable-llvm-optzns.
Swift SVN r11453
This commit is contained in:
@@ -39,6 +39,9 @@ def debug_constraints_attempt_EQ : Joined<["-"], "debug-constraints-attempt=">,
|
||||
def disable_diagnostic_passes : Flag<["-"], "disable-diagnostic-passes">,
|
||||
HelpText<"Don't run diagnostic passes">;
|
||||
|
||||
def disable_llvm_optzns : Flag<["-"], "disable-llvm-optzns">,
|
||||
HelpText<"Don't run LLVM optimization passes">;
|
||||
|
||||
def emit_sil_protocol_witness_tables :
|
||||
Flag<["-"], "emit-sil-protocol-witness-tables">,
|
||||
HelpText<"Emit experimental SIL protocol witness tables">;
|
||||
|
||||
@@ -318,6 +318,10 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
Opts.OptLevel = 0;
|
||||
}
|
||||
|
||||
if (Args.hasArg(OPT_disable_llvm_optzns)) {
|
||||
Opts.DisableLLVMOptzns = true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user