fn check_and_apply_linkage<'ll, 'tcx>( cx: &CodegenCx<'ll, 'tcx>, attrs: &CodegenFnAttrs, llty: &'ll Type, sym: &str, def_id: DefId, ) -> &'ll Value