about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back
diff options
context:
space:
mode:
authorDevJPM <jean-pierre.muench@web.de>2020-11-07 23:25:45 +0100
committerDevJPM <jean-pierre.muench@web.de>2020-11-12 14:39:47 +0100
commitb51bcc72d9fce469ccdcd75676d8bd35f41e5614 (patch)
tree8785db8dab2c415ee3fb6a2d6276ec9fa17c4c6b /compiler/rustc_codegen_llvm/src/back
parent6830f1c6e25bb5a49782d71698878ed9ed97523c (diff)
downloadrust-b51bcc72d9fce469ccdcd75676d8bd35f41e5614.tar.gz
rust-b51bcc72d9fce469ccdcd75676d8bd35f41e5614.zip
fully exploited the dropped support of LLVM 8
This commit grepped for LLVM_VERSION_GE, LLVM_VERSION_LT, get_major_version and
min-llvm-version and statically evaluated every expression possible
(and sensible) assuming that the LLVM version is >=9 now
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/write.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs
index e6acb6860be..0116b81951e 100644
--- a/compiler/rustc_codegen_llvm/src/back/write.rs
+++ b/compiler/rustc_codegen_llvm/src/back/write.rs
@@ -377,11 +377,6 @@ fn get_pgo_use_path(config: &ModuleConfig) -> Option<CString> {
 }
 
 pub(crate) fn should_use_new_llvm_pass_manager(config: &ModuleConfig) -> bool {
-    // We only support the new pass manager starting with LLVM 9.
-    if llvm_util::get_major_version() < 9 {
-        return false;
-    }
-
     // The new pass manager is disabled by default.
     config.new_llvm_pass_manager
 }