diff options
| author | Josh Stone <jistone@redhat.com> | 2021-11-05 10:26:16 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2021-11-05 10:26:16 -0700 |
| commit | 1d04577ee05e18cb9d25bbfac6d5a0302f380de8 (patch) | |
| tree | 06eab5005b828180754bbae5b91de2f118a6cc9b /compiler/rustc_codegen_llvm/src/context.rs | |
| parent | d22dd65835190278f315e06442614142653ec98f (diff) | |
| download | rust-1d04577ee05e18cb9d25bbfac6d5a0302f380de8.tar.gz rust-1d04577ee05e18cb9d25bbfac6d5a0302f380de8.zip | |
Remove some minor checks for LLVM < 12
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 3 |
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 cda766039c1..1dba264a961 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -134,9 +134,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_version() < (12, 0, 0) && sess.target.arch == "powerpc64" { - target_data_layout = target_data_layout.replace("-v256:256:256-v512:512:512", ""); - } if llvm_util::get_version() < (13, 0, 0) { if sess.target.arch == "powerpc64" { target_data_layout = target_data_layout.replace("-S128", ""); |
