diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-18 16:27:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-18 16:27:09 +0100 |
| commit | 1ac0239bd23e06330d7d8ba7fc40584bb13a460d (patch) | |
| tree | 9699b9c708312c57ab2388b65c6797a2bf77f4a2 /compiler/rustc_codegen_llvm/src | |
| parent | 3fa48ec8495bbd1106a609dfe291b61f8ca13573 (diff) | |
| parent | d9132de4ab020f43fa1893ab91f49dbc94afc60f (diff) | |
| download | rust-1ac0239bd23e06330d7d8ba7fc40584bb13a460d.tar.gz rust-1ac0239bd23e06330d7d8ba7fc40584bb13a460d.zip | |
Rollup merge of #122649 - cuviper:min-llvm-17, r=nikic
Update the minimum external LLVM to 17 With this change, we'll have stable support for LLVM 17 and 18. For reference, the previous increase to LLVM 16 was #117947.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -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. |
