Auto merge of #55593 - nikic:remove-llvm-4-checks, r=rkruppe
Remove checks for LLVM < 4.0 While we still have to support LLVM 4.0 for Emscripten, we can drop checks for LLVM >= 4.0 and < 4.0.
This commit is contained in:
commit
0117b42f66
8 changed files with 6 additions and 215 deletions
|
@ -737,19 +737,6 @@ pub fn codegen_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
|||
{
|
||||
check_for_rustc_errors_attr(tcx);
|
||||
|
||||
if let Some(true) = tcx.sess.opts.debugging_opts.thinlto {
|
||||
if unsafe { !llvm::LLVMRustThinLTOAvailable() } {
|
||||
tcx.sess.fatal("this compiler's LLVM does not support ThinLTO");
|
||||
}
|
||||
}
|
||||
|
||||
if (tcx.sess.opts.debugging_opts.pgo_gen.is_some() ||
|
||||
!tcx.sess.opts.debugging_opts.pgo_use.is_empty()) &&
|
||||
unsafe { !llvm::LLVMRustPGOAvailable() }
|
||||
{
|
||||
tcx.sess.fatal("this compiler's LLVM does not support PGO");
|
||||
}
|
||||
|
||||
let cgu_name_builder = &mut CodegenUnitNameBuilder::new(tcx);
|
||||
|
||||
// Codegen the metadata.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue