1
Fork 0

Add a query type which is always marked as red if it runs

This commit is contained in:
John Kåre Alsaker 2019-01-20 05:44:02 +01:00
parent d173180116
commit 34ec9a5942
8 changed files with 106 additions and 61 deletions

View file

@ -20,6 +20,7 @@ use super::LlvmCodegenBackend;
use llvm;
use metadata;
use rustc::dep_graph;
use rustc::mir::mono::{Linkage, Visibility, Stats};
use rustc::middle::cstore::{EncodedMetadata};
use rustc::ty::TyCtxt;
@ -145,7 +146,8 @@ pub fn compile_codegen_unit<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
let ((stats, module), _) = tcx.dep_graph.with_task(dep_node,
tcx,
cgu_name,
module_codegen);
module_codegen,
dep_graph::hash_result);
let time_to_codegen = start_time.elapsed();
// We assume that the cost to run LLVM on a CGU is proportional to