[llvm-branch-commits] [compiler-rt] 039cb03 - [builtins] Use %% as the separator for aarch64-*-darwin and ; for powerpc{32,64}

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Dec 16 00:17:27 PST 2020


Author: Fangrui Song
Date: 2020-12-16T00:13:22-08:00
New Revision: 039cb03dd0dcff4daa17a062f7414ac22bf5f2eb

URL: https://github.com/llvm/llvm-project/commit/039cb03dd0dcff4daa17a062f7414ac22bf5f2eb
DIFF: https://github.com/llvm/llvm-project/commit/039cb03dd0dcff4daa17a062f7414ac22bf5f2eb.diff

LOG: [builtins] Use %% as the separator for aarch64-*-darwin and ; for powerpc{32,64}

`;` is the default comment marker, which is also used by powerpc*-*-elf target triples.
`@` is the comment marker of powerpc*-*-darwin but the Darwin support has been deleted for PowerPC (D72063).
`%%` is the statement separator used by aarch64-*-darwin (see AArch64MCAsmInfoDarwin, it uses `;` as the comment marker, which is different from most other targets)

Reviewed By: tambre

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

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 3b00a5def6f3..0f86c74a9ca2 100644
--- a/compiler-rt/lib/builtins/assembly.h
+++ b/compiler-rt/lib/builtins/assembly.h
@@ -14,8 +14,8 @@
 #ifndef COMPILERRT_ASSEMBLY_H
 #define COMPILERRT_ASSEMBLY_H
 
-#if defined(__POWERPC__) || defined(__powerpc__) || defined(__ppc__)
-#define SEPARATOR @
+#if defined(__APPLE__) && defined(__aarch64__)
+#define SEPARATOR %%
 #else
 #define SEPARATOR ;
 #endif


        


More information about the llvm-branch-commits mailing list