Make -Z new-llvm-pass-manager an Option<bool>

To allow it to have an LLVM version dependent default.
This commit is contained in:
Nikita Popov 2021-04-04 21:38:34 +02:00
parent 50e1dc1536
commit 0318883cd6
4 changed files with 4 additions and 4 deletions

View file

@ -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(