diff options
| author | Nikita Popov <npopov@redhat.com> | 2025-09-18 17:09:14 +0200 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2025-09-23 10:21:17 +0200 |
| commit | bc7986ec791ded521f3f75ab82645b6be0c39508 (patch) | |
| tree | 50310d0e5e0ffe0089ef33ffddf071fe28b065b8 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 32e3d9f59bae4bcf436bc1e28723c696d2c75b11 (diff) | |
| download | rust-bc7986ec791ded521f3f75ab82645b6be0c39508.tar.gz rust-bc7986ec791ded521f3f75ab82645b6be0c39508.zip | |
Add attributes for #[global_allocator] functions
Emit `#[rustc_allocator]` etc. attributes on the functions generated by the `#[global_allocator]` macro, which will emit LLVM attributes like `"alloc-family"`. If the module with the global allocator participates in LTO, this ensures that the attributes typically emitted on the allocator declarations are not lost if the definition is imported.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
