Use LLVM-C APIs for getting/setting visibility

This commit is contained in:
Zalathar 2024-10-25 22:26:15 +11:00
parent 96993a9b5e
commit d976ca8701
4 changed files with 8 additions and 45 deletions

View file

@ -34,6 +34,8 @@ pub(crate) fn try_from_u32(s: Structure<'_>) -> TokenStream {
.iter()
.map(|v| v.construct(|_, _| -> TokenStream { unreachable!() }))
.collect::<Vec<_>>();
// FIXME(edition_2024): Fix the `keyword_idents_2024` lint to not trigger here?
#[allow(keyword_idents_2024)]
s.gen_impl(quote! {
// The surrounding code might have shadowed these identifiers.
use ::core::convert::TryFrom;