Author: Stephan Bergmann
Date: 2020-12-16T14:42:03+01:00
New Revision: 75f98f0f8c813a0cffb130bc0589e4609ab09076

URL: 
https://github.com/llvm/llvm-project/commit/75f98f0f8c813a0cffb130bc0589e4609ab09076
DIFF: 
https://github.com/llvm/llvm-project/commit/75f98f0f8c813a0cffb130bc0589e4609ab09076.diff

LOG: [PATCH] [compiler-rt] [builtins] Fix name of __aarch64_have_lse_atomics on 
Darwin

...where the name of that variable defined in
compiler-rt/lib/builtins/cpu_model.c is decorated with a leading underscore

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

Added: 
    

Modified: 
    compiler-rt/lib/builtins/aarch64/lse.S

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/builtins/aarch64/lse.S 
b/compiler-rt/lib/builtins/aarch64/lse.S
index 7a9433fd89cf..5dc0d5320b5a 100644
--- a/compiler-rt/lib/builtins/aarch64/lse.S
+++ b/compiler-rt/lib/builtins/aarch64/lse.S
@@ -28,7 +28,11 @@
 .arch armv8-a
 #endif
 
+#if !defined(__APPLE__)
 HIDDEN(__aarch64_have_lse_atomics)
+#else
+HIDDEN(___aarch64_have_lse_atomics)
+#endif
 
 // Generate mnemonics for
 // L_cas:                                 SIZE: 1,2,4,8,16 MODEL: 1,2,3,4
@@ -106,8 +110,8 @@ HIDDEN(__aarch64_have_lse_atomics)
         adrp    x(tmp0), __aarch64_have_lse_atomics
         ldrb    w(tmp0), [x(tmp0), :lo12:__aarch64_have_lse_atomics]
 #else
-        adrp    x(tmp0), __aarch64_have_lse_atomics@page
-        ldrb    w(tmp0), [x(tmp0), __aarch64_have_lse_atomics@pageoff]
+        adrp    x(tmp0), ___aarch64_have_lse_atomics@page
+        ldrb    w(tmp0), [x(tmp0), ___aarch64_have_lse_atomics@pageoff]
 #endif
         cbz     w(tmp0), \label
 .endm


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to