redirect `exported_symbols` through `shared`

This commit is contained in:
Niko Matsakis 2017-04-13 12:07:56 -04:00
parent 7b429242a5
commit 33875055f0
2 changed files with 1 additions and 5 deletions

View File

@ -678,10 +678,6 @@ impl<'b, 'tcx> CrateContext<'b, 'tcx> {
unsafe { llvm::LLVMRustGetModuleDataLayout(self.llmod()) }
}
pub fn exported_symbols<'a>(&'a self) -> &'a NodeSet {
&self.shared.exported_symbols
}
pub fn needs_unwind_cleanup_cache(&self) -> &RefCell<FxHashMap<Ty<'tcx>, bool>> {
&self.local().needs_unwind_cleanup_cache
}

View File

@ -37,7 +37,7 @@ pub fn is_node_local_to_unit(cx: &CrateContext, node_id: ast::NodeId) -> bool
// visible). It might better to use the `exported_items` set from
// `driver::CrateAnalysis` in the future, but (atm) this set is not
// available in the translation pass.
!cx.exported_symbols().contains(&node_id)
!cx.shared().exported_symbols().contains(&node_id)
}
#[allow(non_snake_case)]