mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-12 14:41:05 +00:00
Sets the section names for fixed-size constants and use the mergeable
flag for ELF on x86 so that duplicate constants can be eliminated by the linker. This matches what GCC does with its -fmerge-constants option, which is enabled at most -O levels. llvm-svn: 36666
This commit is contained in:
parent
4b7c032c6e
commit
a97ce790d0
@ -107,6 +107,11 @@ X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) {
|
||||
// HasDotFile - True if target asm supports .file directives.
|
||||
// bool HasDotFile; // Defaults to false.
|
||||
ReadOnlySection = "\t.section\t.rodata\n";
|
||||
FourByteConstantSection = "\t.section\t.rodata.cst4,\"aM\",@progbits,4";
|
||||
EightByteConstantSection = "\t.section\t.rodata.cst8,\"aM\",@progbits,8";
|
||||
SixteenByteConstantSection =
|
||||
"\t.section\t.rodata.cst16,\"aM\",@progbits,16";
|
||||
CStringSection = "\t.section\t.rodata.str1.1,\"aMS\",@progbits,1";
|
||||
PrivateGlobalPrefix = ".L";
|
||||
WeakRefDirective = "\t.weak\t";
|
||||
SetDirective = "\t.set\t";
|
||||
|
Loading…
x
Reference in New Issue
Block a user