diff options
| author | bors <bors@rust-lang.org> | 2024-10-27 03:24:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-10-27 03:24:54 +0000 |
| commit | be33e4f3d6ead2de92601fc434929764b5626741 (patch) | |
| tree | 28baa5a39913fd61d1c41d2f2efc648187eae83b /compiler/rustc_expand/src/mbe/macro_parser.rs | |
| parent | f7cf41c97350f972d7281c20ed2d0c3744329023 (diff) | |
| parent | d976ca870191e8677925ff4b76c48cae829ec5ae (diff) | |
| download | rust-be33e4f3d6ead2de92601fc434929764b5626741.tar.gz rust-be33e4f3d6ead2de92601fc434929764b5626741.zip | |
Auto merge of #132167 - Zalathar:llvm-wrappers, r=jieyouxu
Replace some LLVMRust wrappers with calls to the LLVM C API This PR removes the LLVMRust wrapper functions for getting/setting linkage and visibility, and replaces them with direct calls to the corresponding functions in LLVM's C API. To make this convenient and sound, two pieces of supporting code have also been added: - A simple proc-macro that derives `TryFrom<u32>` for fieldless enums - A wrapper type for C enum values returned by LLVM functions, to ensure soundness if LLVM returns an enum value we don't know about In a few places, the use of safe wrapper functions means that an `unsafe` block is no longer needed, so the affected code has changed its indentation level.
Diffstat (limited to 'compiler/rustc_expand/src/mbe/macro_parser.rs')
0 files changed, 0 insertions, 0 deletions
