codegen: allow the dso_local attribute
The attribute is injected into most items when static relocation is enabled in a target.
This commit is contained in:
parent
5fdeae610d
commit
dc1ed9ddd7
9 changed files with 50 additions and 50 deletions
|
@ -31,4 +31,4 @@ pub fn box_uninitialized2() -> Box<MaybeUninit<[usize; 1024 * 1024]>> {
|
|||
// Hide the LLVM 15+ `allocalign` attribute in the declaration of __rust_alloc
|
||||
// from the CHECK-NOT above. We don't check the attributes here because we can't rely
|
||||
// on all of them being set until LLVM 15.
|
||||
// CHECK: declare noalias{{.*}} @__rust_alloc(i{{[0-9]+}} noundef, i{{[0-9]+.*}} noundef)
|
||||
// CHECK: declare {{(dso_local )?}}noalias{{.*}} @__rust_alloc(i{{[0-9]+}} noundef, i{{[0-9]+.*}} noundef)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue