redirect `exported_symbols` through `shared`
This commit is contained in:
parent
7b429242a5
commit
33875055f0
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue