diff options
| author | gingerBill <bill@gingerbill.org> | 2023-07-23 12:21:27 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-07-23 21:44:50 +0100 |
| commit | 99c812b02d31d8f827e299ff7bb4a5d0c59bed4b (patch) | |
| tree | d1c3ba2ccbd8aa18bf20780d5161e409584db729 /src/tilde_debug.cpp | |
| parent | d82c2ce50ff37ca624d32208f2e0249966b5542d (diff) | |
Begin working on a minimum build
Diffstat (limited to 'src/tilde_debug.cpp')
| -rw-r--r-- | src/tilde_debug.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tilde_debug.cpp b/src/tilde_debug.cpp index 21594ef07..e6e60be96 100644 --- a/src/tilde_debug.cpp +++ b/src/tilde_debug.cpp @@ -368,7 +368,11 @@ gb_internal TB_DebugType *cg_debug_type_internal(cgModule *m, Type *type) { param_count += 1; } - TB_DebugType *func = tb_debug_create_func(m->mod, TB_CDECL, param_count, return_count, pt->c_vararg); + TB_CallingConv tb_cc = TB_CDECL; + if (pt->calling_convention == ProcCC_StdCall) { + tb_cc = TB_STDCALL; + } + TB_DebugType *func = tb_debug_create_func(m->mod, tb_cc, param_count, return_count, pt->c_vararg); map_set(&m->proc_debug_type_map, original_type, func); map_set(&m->proc_debug_type_map, type, func); |