Skip to content

Commit 039cb03

Browse files
committed
[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
1 parent 0524da6 commit 039cb03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/builtins/assembly.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
#ifndef COMPILERRT_ASSEMBLY_H
1515
#define COMPILERRT_ASSEMBLY_H
1616

17-
#if defined(__POWERPC__) || defined(__powerpc__) || defined(__ppc__)
18-
#define SEPARATOR @
17+
#if defined(__APPLE__) && defined(__aarch64__)
18+
#define SEPARATOR %%
1919
#else
2020
#define SEPARATOR ;
2121
#endif

0 commit comments

Comments
 (0)