build: give aliases the same visibility
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 28 Oct 2016 23:37:50 +0000 (23:37 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 28 Oct 2016 23:37:50 +0000 (23:37 +0000)
ARM EABI also uses function aliases.  Ensure that those aliased functions are
given proper visibility annotations.

llvm-svn: 285478

compiler-rt/lib/builtins/assembly.h

index 5fc74f68f60324ba82459dce8da413b71bb0fa32..5e36b5a5edf379cf30c2b843c2ef5c875d54837a 100644 (file)
 #define DEFINE_COMPILERRT_FUNCTION_ALIAS(name, target)                         \
   .globl SYMBOL_NAME(name) SEPARATOR                                           \
   SYMBOL_IS_FUNC(SYMBOL_NAME(name)) SEPARATOR                                  \
+  DECLARE_SYMBOL_VISIBILITY(SYMBOL_NAME(name)) SEPARATOR                       \
   .set SYMBOL_NAME(name), SYMBOL_NAME(target) SEPARATOR
 
 #if defined(__ARM_EABI__)