about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2019-01-20 05:44:02 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2019-02-08 04:28:32 +0100
commit34ec9a59423a299a6cd1bedfd4e0a660748f6540 (patch)
treeb784597e684f1b11818fda7a962ce8b9b118b86f /src/librustc_codegen_llvm
parentd1731801163df1d3a8d4ddfa68adac2ec833ef7f (diff)
downloadrust-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.rs4
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