]> git.lizzy.rs Git - rust.git/commitdiff
redirect `exported_symbols` through `shared`
authorNiko Matsakis <niko@alum.mit.edu>
Thu, 13 Apr 2017 16:07:56 +0000 (12:07 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Thu, 13 Apr 2017 22:33:09 +0000 (18:33 -0400)
src/librustc_trans/context.rs
src/librustc_trans/debuginfo/utils.rs

index c54929383f4def668f5695af959f7bef00b3389f..657dd56accd91a777280a8b98cb343f58fccc3c6 100644 (file)
@@ -678,10 +678,6 @@ pub fn td(&self) -> llvm::TargetDataRef {
         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
     }
index ceff96a39b2c982a04bc8233028aa67357506961..0a873767d935997b5601dc2495c263a41955c37e 100644 (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)]