Avoid wrapping constant allocations in packed structs when not necessary
This way LLVM will set the string merging flag if the alloc is a nul terminated string, reducing binary sizes.
This commit is contained in:
parent
f7b4354283
commit
a5fa12b6b9
8 changed files with 26 additions and 25 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
#![crate_type = "lib"]
|
||||
|
||||
// CHECK: @VAR1 = {{(dso_local )?}}constant <{ [4 x i8] }> <{ [4 x i8] c"\01\00\00\00" }>, section ".test_one"
|
||||
// CHECK: @VAR1 = {{(dso_local )?}}constant [4 x i8] c"\01\00\00\00", section ".test_one"
|
||||
#[no_mangle]
|
||||
#[link_section = ".test_one"]
|
||||
#[cfg(target_endian = "little")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue