[compiler-rt] Avoid double-prefixing aliases with __USER_LABEL_PREFIX__
authorSergei Barannikov <barannikov88@gmail.com>
Sun, 2 Apr 2023 15:33:27 +0000 (18:33 +0300)
committerSergei Barannikov <barannikov88@gmail.com>
Sun, 2 Apr 2023 15:34:35 +0000 (18:34 +0300)
The prefix is added by DECLARE_SYMBOL_VISIBILITY. Calling SYMBOL_NAME
resulted in adding the prefix twice.

Reviewed By: dim

Differential Revision: https://reviews.llvm.org/D147077

compiler-rt/lib/builtins/assembly.h

index 69a3d86..169d496 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                       \
+  DECLARE_SYMBOL_VISIBILITY(name) SEPARATOR                                    \
   .set SYMBOL_NAME(name), SYMBOL_NAME(target) SEPARATOR
 
 #if defined(__ARM_EABI__)