builtins: rely on the compiler for user label prefix
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 19 Dec 2014 18:54:13 +0000 (18:54 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 19 Dec 2014 18:54:13 +0000 (18:54 +0000)
commit5bbc71853945cacf59fd857e5b3043eaa7e397ed
tree9e3090d37384daad91200f2c8561d8844a3762a0
parentabd5bead3fc1636ae6fcb5cb689d5701e77d86a9
builtins: rely on the compiler for user label prefix

clang does not like the definition of builtins.  In order to work around this,
we use a SUN CC to redefine the generated name.  However, this requires that we
account for the user label prefix.  Rather than hard coding that into the file,
rely on the compiler to tell us the information and use the preprocessor to
generate the name as we do in the assembly routines.  NFC.

llvm-svn: 224597
compiler-rt/lib/builtins/atomic.c