about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/context.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2023-02-01 12:52:06 -0800
committerJosh Stone <jistone@redhat.com>2023-02-10 16:06:25 -0800
commita06aaa4a9efe605b91b2f42718696906ce2ba629 (patch)
tree3eb62e58962e4a67d70e24a6c634431072e4df62 /compiler/rustc_codegen_llvm/src/context.rs
parent2773383a314a4b8f481ce2bed12c32de794ffbe9 (diff)
downloadrust-a06aaa4a9efe605b91b2f42718696906ce2ba629.tar.gz
rust-a06aaa4a9efe605b91b2f42718696906ce2ba629.zip
Update the minimum external LLVM to 14
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/context.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs
index c0b23585d3a..120dc59dfb3 100644
--- a/compiler/rustc_codegen_llvm/src/context.rs
+++ b/compiler/rustc_codegen_llvm/src/context.rs
@@ -143,17 +143,6 @@ pub unsafe fn create_module<'ll>(
 
     let mut target_data_layout = sess.target.data_layout.to_string();
     let llvm_version = llvm_util::get_version();
-    if llvm_version < (14, 0, 0) {
-        if sess.target.llvm_target == "i686-pc-windows-msvc"
-            || sess.target.llvm_target == "i586-pc-windows-msvc"
-        {
-            target_data_layout =
-                "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
-                    .to_string();
-        } else if sess.target.arch == "wasm32" {
-            target_data_layout = target_data_layout.replace("-p10:8:8-p20:8:8", "");
-        }
-    }
     if llvm_version < (16, 0, 0) {
         if sess.target.arch == "s390x" {
             target_data_layout = target_data_layout.replace("-v128:64", "");