Make -Z new-llvm-pass-manager an Option<bool>
To allow it to have an LLVM version dependent default.
This commit is contained in:
parent
50e1dc1536
commit
0318883cd6
4 changed files with 4 additions and 4 deletions
|
@ -410,7 +410,7 @@ fn get_pgo_use_path(config: &ModuleConfig) -> Option<CString> {
|
|||
|
||||
pub(crate) fn should_use_new_llvm_pass_manager(config: &ModuleConfig) -> bool {
|
||||
// The new pass manager is disabled by default.
|
||||
config.new_llvm_pass_manager
|
||||
config.new_llvm_pass_manager.unwrap_or(false)
|
||||
}
|
||||
|
||||
pub(crate) unsafe fn optimize_with_new_llvm_pass_manager(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue