authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-29 01:20:18+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-02 10:44:18+01:00
logf508e227052bb13943bad16b324944ae72d8af4e
treeef3dbda5841df4ae11eadad53a5ca11ab764fe35
parentc217fd2b9ca06d51b8c67a7a556e61ae71a25dbb
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

link.Dwarf: Some minor corrections to calling conventions to ~match Clang.

This can't be completely 1:1 due to the fact that we model CCs more precisely, but this is about as close as we can get.

1 files changed, 8 insertions(+), 8 deletions(-)

src/link/Dwarf.zig+8-8
......@@ -3415,8 +3415,8 @@ fn updateType(
34153415 .x86_64_regcall_v3_sysv => .LLVM_X86RegCall,
34163416 .x86_64_regcall_v4_win => .LLVM_X86RegCall,
34173417 .x86_64_vectorcall => .LLVM_vectorcall,
3418 .x86_sysv => .nocall,
3419 .x86_win => .nocall,
3418 .x86_sysv => .normal,
3419 .x86_win => .normal,
34203420 .x86_stdcall => .BORLAND_stdcall,
34213421 .x86_fastcall => .BORLAND_msfastcall,
34223422 .x86_thiscall => .BORLAND_thiscall,
......@@ -3425,13 +3425,13 @@ fn updateType(
34253425 .x86_regcall_v4_win => .LLVM_X86RegCall,
34263426 .x86_vectorcall => .LLVM_vectorcall,
34273427
3428 .aarch64_aapcs => .LLVM_AAPCS,
3429 .aarch64_aapcs_darwin => .LLVM_AAPCS,
3430 .aarch64_aapcs_win => .LLVM_AAPCS,
3428 .aarch64_aapcs => .normal,
3429 .aarch64_aapcs_darwin => .normal,
3430 .aarch64_aapcs_win => .normal,
34313431 .aarch64_vfabi => .LLVM_AAPCS,
34323432 .aarch64_vfabi_sve => .LLVM_AAPCS,
34333433
3434 .arm_apcs => .nocall,
3434 .arm_apcs => .normal,
34353435 .arm_aapcs => .LLVM_AAPCS,
34363436 .arm_aapcs_vfp,
34373437 .arm_aapcs16_vfp,
......@@ -3443,10 +3443,10 @@ fn updateType(
34433443
34443444 .m68k_rtd => .LLVM_M68kRTD,
34453445
3446 .amdgcn_kernel,
3446 .amdgcn_kernel => .LLVM_OpenCLKernel,
34473447 .nvptx_kernel,
34483448 .spirv_kernel,
3449 => .LLVM_OpenCLKernel,
3449 => .nocall,
34503450
34513451 .x86_64_interrupt,
34523452 .x86_interrupt,