diff options
| author | Josh Stone <jistone@redhat.com> | 2021-03-22 11:33:43 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2021-03-22 11:33:43 -0700 |
| commit | 7d872f538efc5cb3786c3aa0a6654bae7a67ec63 (patch) | |
| tree | b7e9f5a8d13b2bf78dfb8d219615de1c53798240 /compiler/rustc_codegen_llvm/src | |
| parent | d04c3aa8656f6588c87bafafb34d51239dab98bb (diff) | |
| download | rust-7d872f538efc5cb3786c3aa0a6654bae7a67ec63.tar.gz rust-7d872f538efc5cb3786c3aa0a6654bae7a67ec63.zip | |
Update the minimum external LLVM to 10
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index 21473f3b114..c580456805a 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -101,10 +101,6 @@ fn to_llvm_tls_model(tls_model: TlsModel) -> llvm::ThreadLocalMode { } } -fn strip_x86_address_spaces(data_layout: String) -> String { - data_layout.replace("-p270:32:32-p271:32:32-p272:64:64-", "-") -} - fn strip_powerpc64_vectors(data_layout: String) -> String { data_layout.replace("-v256:256:256-v512:512:512", "") } @@ -119,11 +115,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() < (10, 0, 0) - && (sess.target.arch == "x86" || sess.target.arch == "x86_64") - { - target_data_layout = strip_x86_address_spaces(target_data_layout); - } if llvm_util::get_version() < (12, 0, 0) && sess.target.arch == "powerpc64" { target_data_layout = strip_powerpc64_vectors(target_data_layout); } |
