builtins: make the x86_64 compatible with GAS

The .rodata directive was added on the IA-64 (Itanium) platform.  The LLVM IAS
supports the .rodata on i386 and x86_64 as well.  There is no reason to really
restrict compilation of the builtins to just clang.  By explicitly indicating
that the data is meant to be pushed into the .rodata section via the .section
.rodata, the assembly is made compatible with clang and gcc (with GAS).

This will enable building these routines on the Linux buildbots via CMake.

llvm-svn: 214012
This commit is contained in:
Saleem Abdulrasool 2014-07-26 04:03:59 +00:00
parent 5896698e2e
commit 93efc78a04
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
#if defined(__APPLE__)
.const
#elif defined(__ELF__)
.rodata
.section .rodata
#else
.section .rdata,"rd"
#endif

View File

@ -10,7 +10,7 @@
#if defined(__APPLE__)
.literal4
#elif defined(__ELF__)
.rodata
.section .rodata
#else
.section .rdata,"rd"
#endif

View File

@ -10,7 +10,7 @@
#if defined(__APPLE__)
.const
#elif defined(__ELF__)
.rodata
.section .rodata
#else
.section .rdata,"rd"
#endif