[compiler-rt] 5e09b17 - [compiler-rt] Avoid double-prefixing aliases with __USER_LABEL_PREFIX__
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 2 08:34:51 PDT 2023
Author: Sergei Barannikov
Date: 2023-04-02T18:34:35+03:00
New Revision: 5e09b172d9ea88ca76024c6adc631abd94304ab7
URL: https://github.com/llvm/llvm-project/commit/5e09b172d9ea88ca76024c6adc631abd94304ab7
DIFF: https://github.com/llvm/llvm-project/commit/5e09b172d9ea88ca76024c6adc631abd94304ab7.diff
LOG: [compiler-rt] Avoid double-prefixing aliases with __USER_LABEL_PREFIX__
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
Added:
Modified:
compiler-rt/lib/builtins/assembly.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/assembly.h b/compiler-rt/lib/builtins/assembly.h
index 69a3d8620f924..169d49683f503 100644
--- a/compiler-rt/lib/builtins/assembly.h
+++ b/compiler-rt/lib/builtins/assembly.h
@@ -267,7 +267,7 @@
#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__)
More information about the llvm-commits
mailing list