Function rustc_codegen_llvm::debuginfo::metadata::visibility_di_flags
source · fn visibility_di_flags<'ll, 'tcx>(
cx: &CodegenCx<'ll, 'tcx>,
did: DefId,
type_did: DefId,
) -> DIFlags
Expand description
Returns the DIFlags
corresponding to the visibility of the item identified by did
.
DIFlags::Flag{Public,Protected,Private}
correspond to DW_AT_accessibility
(public/protected/private) aren’t exactly right for Rust, but neither is DW_AT_visibility
(local/exported/qualified), and there’s no way to set DW_AT_visibility
in LLVM’s API.