diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2019-01-20 05:44:02 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2019-02-08 04:28:32 +0100 |
| commit | 34ec9a59423a299a6cd1bedfd4e0a660748f6540 (patch) | |
| tree | b784597e684f1b11818fda7a962ce8b9b118b86f /src/librustc_codegen_llvm | |
| parent | d1731801163df1d3a8d4ddfa68adac2ec833ef7f (diff) | |
| download | rust-34ec9a59423a299a6cd1bedfd4e0a660748f6540.tar.gz rust-34ec9a59423a299a6cd1bedfd4e0a660748f6540.zip | |
Add a query type which is always marked as red if it runs
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/base.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/base.rs b/src/librustc_codegen_llvm/base.rs index 6e1ef440a3f..d9f44ca6e45 100644 --- a/src/librustc_codegen_llvm/base.rs +++ b/src/librustc_codegen_llvm/base.rs @@ -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 |
