mark apple targets with a boolean

It is more natural to branch on a
flag than have different function
pointers for high-level passes.
This commit is contained in:
Quentin Carbonneaux 2022-10-03 11:08:05 +02:00
parent a7e1602252
commit b03a8970d7
8 changed files with 41 additions and 86 deletions

View file

@ -38,12 +38,12 @@ arm64_memargs(int op)
.argregs = arm64_argregs, \
.memargs = arm64_memargs, \
.isel = arm64_isel, \
.abi1 = arm64_abi, \
.emitfn = arm64_emitfn, \
Target T_arm64 = {
.name = "arm64",
.abi0 = elimsb,
.abi1 = arm64_abi,
.emitfn = arm64_emitfn,
.emitfin = elf_emitfin,
.asloc = ".L",
ARM64_COMMON
@ -51,9 +51,8 @@ Target T_arm64 = {
Target T_arm64_apple = {
.name = "arm64_apple",
.apple = 1,
.abi0 = apple_extsb,
.abi1 = apple_abi,
.emitfn = apple_emitfn,
.emitfin = macho_emitfin,
.asloc = "L",
.assym = "_",