Skip to content

Commit 3387505

Browse files
committed
redirect exported_symbols through shared
1 parent 7b42924 commit 3387505

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/librustc_trans/context.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -678,10 +678,6 @@ impl<'b, 'tcx> CrateContext<'b, 'tcx> {
678678
unsafe { llvm::LLVMRustGetModuleDataLayout(self.llmod()) }
679679
}
680680

681-
pub fn exported_symbols<'a>(&'a self) -> &'a NodeSet {
682-
&self.shared.exported_symbols
683-
}
684-
685681
pub fn needs_unwind_cleanup_cache(&self) -> &RefCell<FxHashMap<Ty<'tcx>, bool>> {
686682
&self.local().needs_unwind_cleanup_cache
687683
}

src/librustc_trans/debuginfo/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub fn is_node_local_to_unit(cx: &CrateContext, node_id: ast::NodeId) -> bool
3737
// visible). It might better to use the `exported_items` set from
3838
// `driver::CrateAnalysis` in the future, but (atm) this set is not
3939
// available in the translation pass.
40-
!cx.exported_symbols().contains(&node_id)
40+
!cx.shared().exported_symbols().contains(&node_id)
4141
}
4242

4343
#[allow(non_snake_case)]

0 commit comments

Comments
 (0)