Move cgu_reuse_tracker to librustc_session
This commit is contained in:
parent
c761ec1ac9
commit
984c74a40a
12 changed files with 14 additions and 8 deletions
|
@ -3205,6 +3205,7 @@ dependencies = [
|
|||
"rustc_fs_util",
|
||||
"rustc_index",
|
||||
"rustc_macros",
|
||||
"rustc_session",
|
||||
"rustc_target",
|
||||
"scoped-tls",
|
||||
"serialize",
|
||||
|
@ -3518,6 +3519,7 @@ dependencies = [
|
|||
"rustc_fs_util",
|
||||
"rustc_incremental",
|
||||
"rustc_index",
|
||||
"rustc_session",
|
||||
"rustc_target",
|
||||
"serialize",
|
||||
"syntax",
|
||||
|
@ -3634,6 +3636,7 @@ dependencies = [
|
|||
"rustc",
|
||||
"rustc_data_structures",
|
||||
"rustc_fs_util",
|
||||
"rustc_session",
|
||||
"serialize",
|
||||
"syntax",
|
||||
"syntax_pos",
|
||||
|
@ -3890,7 +3893,6 @@ version = "0.0.0"
|
|||
dependencies = [
|
||||
"log",
|
||||
"rustc_data_structures",
|
||||
"libserialize",
|
||||
"rustc_errors",
|
||||
"serialize",
|
||||
"syntax_pos",
|
||||
|
|
|
@ -5,7 +5,6 @@ mod prev;
|
|||
mod query;
|
||||
mod safe;
|
||||
mod serialized;
|
||||
pub mod cgu_reuse_tracker;
|
||||
|
||||
pub use self::dep_node::{DepNode, DepKind, DepConstructor, WorkProductId, RecoverKey, label_strs};
|
||||
pub use self::graph::{DepGraph, WorkProduct, DepNodeIndex, DepNodeColor, TaskDeps, hash_result};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
pub use self::code_stats::{DataTypeKind, SizeKind, FieldInfo, VariantInfo};
|
||||
use self::code_stats::CodeStats;
|
||||
|
||||
use crate::dep_graph::cgu_reuse_tracker::CguReuseTracker;
|
||||
use rustc_session::cgu_reuse_tracker::CguReuseTracker;
|
||||
use rustc_data_structures::fingerprint::Fingerprint;
|
||||
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ use rustc_codegen_ssa::back::lto::{SerializedModule, LtoModuleCodegen, ThinShare
|
|||
use rustc_codegen_ssa::traits::*;
|
||||
use errors::{FatalError, Handler};
|
||||
use rustc::dep_graph::WorkProduct;
|
||||
use rustc::dep_graph::cgu_reuse_tracker::CguReuse;
|
||||
use rustc_session::cgu_reuse_tracker::CguReuse;
|
||||
use rustc::hir::def_id::LOCAL_CRATE;
|
||||
use rustc::middle::exported_symbols::SymbolExportLevel;
|
||||
use rustc::session::config::{self, Lto};
|
||||
|
|
|
@ -43,6 +43,7 @@ extern crate smallvec;
|
|||
extern crate syntax;
|
||||
extern crate syntax_pos;
|
||||
extern crate rustc_errors as errors;
|
||||
extern crate rustc_session;
|
||||
|
||||
use rustc_codegen_ssa::traits::*;
|
||||
use rustc_codegen_ssa::back::write::{CodegenContext, ModuleConfig, FatLTOInput};
|
||||
|
|
|
@ -32,3 +32,4 @@ rustc_incremental = { path = "../librustc_incremental" }
|
|||
rustc_index = { path = "../librustc_index" }
|
||||
rustc_target = { path = "../librustc_target" }
|
||||
rustc_error_codes = { path = "../librustc_error_codes" }
|
||||
rustc_session = { path = "../librustc_session" }
|
||||
|
|
|
@ -10,7 +10,7 @@ use crate::traits::*;
|
|||
use rustc_incremental::{copy_cgu_workproducts_to_incr_comp_cache_dir,
|
||||
in_incr_comp_dir, in_incr_comp_dir_sess};
|
||||
use rustc::dep_graph::{WorkProduct, WorkProductId, WorkProductFileKind};
|
||||
use rustc::dep_graph::cgu_reuse_tracker::CguReuseTracker;
|
||||
use rustc_session::cgu_reuse_tracker::CguReuseTracker;
|
||||
use rustc::middle::cstore::EncodedMetadata;
|
||||
use rustc::session::config::{self, OutputFilenames, OutputType, Passes, Lto,
|
||||
Sanitizer, SwitchWithOptPath};
|
||||
|
|
|
@ -25,8 +25,8 @@ use crate::mir::operand::OperandValue;
|
|||
use crate::mir::place::PlaceRef;
|
||||
use crate::traits::*;
|
||||
|
||||
use rustc::dep_graph::cgu_reuse_tracker::CguReuse;
|
||||
use rustc::hir;
|
||||
use rustc_session::cgu_reuse_tracker::CguReuse;
|
||||
use rustc::hir::def_id::{DefId, LOCAL_CRATE};
|
||||
use rustc::middle::cstore::EncodedMetadata;
|
||||
use rustc::middle::lang_items::StartFnLangItem;
|
||||
|
|
|
@ -19,3 +19,4 @@ rustc_serialize = { path = "../libserialize", package = "serialize" }
|
|||
syntax = { path = "../libsyntax" }
|
||||
syntax_pos = { path = "../libsyntax_pos" }
|
||||
rustc_fs_util = { path = "../librustc_fs_util" }
|
||||
rustc_session = { path = "../librustc_session" }
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
//! was re-used.
|
||||
|
||||
use rustc::hir::def_id::LOCAL_CRATE;
|
||||
use rustc::dep_graph::cgu_reuse_tracker::*;
|
||||
use rustc_session::cgu_reuse_tracker::*;
|
||||
use rustc::mir::mono::CodegenUnitNameBuilder;
|
||||
use rustc::ty::TyCtxt;
|
||||
use std::collections::BTreeSet;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
use rustc_data_structures::fx::FxHashMap;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use syntax_pos::Span;
|
||||
use log::debug;
|
||||
|
||||
#[derive(Copy, Clone, Debug, PartialEq, PartialOrd)]
|
||||
pub enum CguReuse {
|
||||
|
@ -93,7 +94,7 @@ impl CguReuseTracker {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn check_expected_reuse(&self, diag: &errors::Handler) {
|
||||
pub fn check_expected_reuse(&self, diag: &rustc_errors::Handler) {
|
||||
if let Some(ref data) = self.data {
|
||||
let data = data.lock().unwrap();
|
||||
|
|
@ -0,0 +1 @@
|
|||
pub mod cgu_reuse_tracker;
|
Loading…
Add table
Reference in a new issue