diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-09-25 20:31:56 +1000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-25 20:31:56 +1000 | 
| commit | 46e25aa7a3f5a63a8447cecdd95b4204dd0047c6 (patch) | |
| tree | 44d901ed1630110828a31815fcf333fb281a5f47 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | cec668fefc82bf838fb6f034ed833665c43f50d9 (diff) | |
| parent | bc7986ec791ded521f3f75ab82645b6be0c39508 (diff) | |
| download | rust-46e25aa7a3f5a63a8447cecdd95b4204dd0047c6.tar.gz rust-46e25aa7a3f5a63a8447cecdd95b4204dd0047c6.zip | |
Rollup merge of #146766 - nikic:global-alloc-attr, r=nnethercote
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. There is a similar issue when the allocator shim is used, but I've opted not to fix that case in this PR, because doing that cleanly is somewhat gnarly. Related to https://github.com/rust-lang/rust/issues/145995.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
