diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2018-07-02 16:21:34 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2018-07-02 16:21:34 +0200 |
| commit | 79d8d087a3d911ddcd881e452a7e72a8a7121435 (patch) | |
| tree | 124a1a9dcdd920bb58d3f5224ff902aa81cbd810 /src/librustc_codegen_llvm | |
| parent | a53bd20fae43cb35d394d7823aacdf52ccbd19cb (diff) | |
| download | rust-79d8d087a3d911ddcd881e452a7e72a8a7121435.tar.gz rust-79d8d087a3d911ddcd881e452a7e72a8a7121435.zip | |
incr.comp.: Take names of children into account when computing the ICH of a module's HIR.
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/mono_item.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/librustc_codegen_llvm/mono_item.rs b/src/librustc_codegen_llvm/mono_item.rs index 6ba3582f014..c4a23ac653c 100644 --- a/src/librustc_codegen_llvm/mono_item.rs +++ b/src/librustc_codegen_llvm/mono_item.rs @@ -25,11 +25,10 @@ use monomorphize::Instance; use type_of::LayoutLlvmExt; use rustc::hir; use rustc::hir::def::Def; -use rustc::hir::def_id::DefId; +use rustc::hir::def_id::{DefId, LOCAL_CRATE}; use rustc::mir::mono::{Linkage, Visibility}; use rustc::ty::TypeFoldable; use rustc::ty::layout::LayoutOf; -use syntax::attr; use std::fmt; pub use rustc::mir::mono::MonoItem; @@ -173,7 +172,7 @@ fn predefine_fn<'a, 'tcx>(cx: &CodegenCx<'a, 'tcx>, // visibility as we're going to link this object all over the place but // don't want the symbols to get exported. if linkage != Linkage::Internal && linkage != Linkage::Private && - attr::contains_name(cx.tcx.hir.krate_attrs(), "compiler_builtins") { + cx.tcx.is_compiler_builtins(LOCAL_CRATE) { unsafe { llvm::LLVMRustSetVisibility(lldecl, llvm::Visibility::Hidden); } |
