about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/back
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-11-05 14:52:08 +0100
committerNikita Popov <nikita.ppv@gmail.com>2018-11-05 15:04:26 +0100
commit3cc8b17451aac4a144baa48bb48f4187a5529769 (patch)
tree441ffae2eddb2da1aad6e69edf73037462cb678b /src/librustc_codegen_llvm/back
parent6cfc6033955dd2685dfa7baeec6f6bc3bfdfe2f1 (diff)
downloadrust-3cc8b17451aac4a144baa48bb48f4187a5529769.tar.gz
rust-3cc8b17451aac4a144baa48bb48f4187a5529769.zip
Remove support for building against LLVM 4
With emscripten removed in #55626, we no longer need to support
building against LLVM 4.
Diffstat (limited to 'src/librustc_codegen_llvm/back')
-rw-r--r--src/librustc_codegen_llvm/back/lto.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustc_codegen_llvm/back/lto.rs b/src/librustc_codegen_llvm/back/lto.rs
index 8f940e0d22a..f04dde26e07 100644
--- a/src/librustc_codegen_llvm/back/lto.rs
+++ b/src/librustc_codegen_llvm/back/lto.rs
@@ -595,9 +595,7 @@ fn run_pass_manager(cgcx: &CodegenContext,
         };
         with_llvm_pmb(llmod, config, opt_level, false, &mut |b| {
             if thin {
-                if !llvm::LLVMRustPassManagerBuilderPopulateThinLTOPassManager(b, pm) {
-                    panic!("this version of LLVM does not support ThinLTO");
-                }
+                llvm::LLVMRustPassManagerBuilderPopulateThinLTOPassManager(b, pm);
             } else {
                 llvm::LLVMPassManagerBuilderPopulateLTOPassManager(b, pm,
                     /* Internalize = */ False,