about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/context.rs
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/context.rs
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/context.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/context.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs
index b6e922ca545..881b6bcb684 100644
--- a/compiler/rustc_codegen_llvm/src/context.rs
+++ b/compiler/rustc_codegen_llvm/src/context.rs
@@ -119,9 +119,6 @@ pub unsafe fn create_module(
     let llmod = llvm::LLVMModuleCreateWithNameInContext(mod_name.as_ptr(), llcx);
 
     let mut target_data_layout = sess.target.data_layout.clone();
-    if llvm_util::get_major_version() < 9 {
-        target_data_layout = strip_function_ptr_alignment(target_data_layout);
-    }
     if llvm_util::get_major_version() < 10
         && (sess.target.arch == "x86" || sess.target.arch == "x86_64")
     {