compiler-rt: prefer .rodata for non MachO targets

Place constants into .rdata if targeting ELF or COFF/PE.  This should be
functionally identical, however, the data would be placed into a different
section.  This is purely a cleanup change.

llvm-svn: 209986
This commit is contained in:
Saleem Abdulrasool 2014-06-01 04:07:07 +00:00
parent 57aa97f53a
commit 2fd910dc72
3 changed files with 22 additions and 6 deletions

View File

@ -17,8 +17,12 @@
#ifdef __x86_64__
#ifndef __ELF__
.const
#if defined(__APPLE__)
.const
#elif defined(__ELF__)
.rodata
#else
.section .rdata,"rd"
#endif
.balign 4
twop52:

View File

@ -7,8 +7,12 @@
#ifdef __x86_64__
#ifndef __ELF__
.literal4
#if defined(__APPLE__)
.literal4
#elif defined(__ELF__)
.rodata
#else
.section .rdata,"rd"
#endif
two:
.single 2.0

View File

@ -7,8 +7,12 @@
#ifdef __x86_64__
#ifndef __ELF__
.const
#if defined(__APPLE__)
.const
#elif defined(__ELF__)
.rodata
#else
.section .rdata,"rd"
#endif
.balign 4
twop64:
@ -39,6 +43,10 @@ END_COMPILERRT_FUNCTION(__floatundixf)
#if defined(__APPLE__)
.const
#elif defined(__ELF__)
.rdata
#else
.section .rdata,"rd"
#endif
.balign 4
twop52: