Allow sysv and win64 calling conventions to be used on any platform on amd64

This commit is contained in:
gingerBill
2022-02-16 16:03:49 +00:00
parent 42ad54c28e
commit db6bd9b358
8 changed files with 60 additions and 35 deletions
+18
View File
@@ -249,12 +249,30 @@ enum ProcCallingConvention : i32 {
ProcCC_InlineAsm = 8,
ProcCC_Win64 = 9,
ProcCC_SysV = 10,
ProcCC_MAX,
ProcCC_ForeignBlockDefault = -1,
};
char const *proc_calling_convention_strings[ProcCC_MAX] = {
"",
"odin",
"contextless",
"cdecl",
"stdcall",
"fastcall",
"none",
"naked",
"inlineasm",
"win64",
"sysv",
};
ProcCallingConvention default_calling_convention(void) {
return ProcCC_Odin;
}