diff options
| author | Josh Stone <jistone@redhat.com> | 2024-03-15 18:43:19 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2024-03-17 10:11:04 -0700 |
| commit | 29430554f65619007f004e7941b7c2efb6465dbf (patch) | |
| tree | 8c1c25b65e50d352351ebcf59d217c048a722065 /compiler/rustc_codegen_llvm/src/context.rs | |
| parent | 35dfc67d94c47a6c6ae28c46e7dc1c547f772485 (diff) | |
| download | rust-29430554f65619007f004e7941b7c2efb6465dbf.tar.gz rust-29430554f65619007f004e7941b7c2efb6465dbf.zip | |
Update the minimum external LLVM to 17
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 11 |
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 f89c8c9f836..c3f17563b0a 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -126,17 +126,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 < (17, 0, 0) { - if sess.target.arch.starts_with("powerpc") { - // LLVM 17 specifies function pointer alignment for ppc: - // https://reviews.llvm.org/D147016 - target_data_layout = target_data_layout - .replace("-Fn32", "") - .replace("-Fi32", "") - .replace("-Fn64", "") - .replace("-Fi64", ""); - } - } if llvm_version < (18, 0, 0) { if sess.target.arch == "x86" || sess.target.arch == "x86_64" { // LLVM 18 adjusts i128 to be 128-bit aligned on x86 variants. |
