Remove "pure" and "pure_none" calling conventions

This commit is contained in:
gingerBill
2021-02-23 13:10:23 +00:00
parent a652c24ac3
commit 28ed310f31
15 changed files with 18 additions and 111 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ RAD_PER_DEG :: TAU/360.0;
DEG_PER_RAD :: 360.0/TAU;
@(default_calling_convention="pure_none")
@(default_calling_convention="none")
foreign _ {
@(link_name="llvm.sqrt.f32")
sqrt_f32 :: proc(x: f32) -> f32 ---;
-2
View File
@@ -22,9 +22,7 @@ Proc_Calling_Convention :: enum i32 {
C_Decl,
Std_Call,
Fast_Call,
Pure,
None,
Pure_None,
Foreign_Block_Default = -1,
}
-5
View File
@@ -1907,13 +1907,8 @@ string_to_calling_convention :: proc(s: string) -> ast.Proc_Calling_Convention {
case "fast", "fastcall":
return .Fast_Call;
case "pure":
return .Pure;
case "none":
return .None;
case "pure_none":
return .Pure_None;
}
return .Invalid;
}
+4 -6
View File
@@ -25,13 +25,11 @@ Calling_Convention :: enum u8 {
Invalid = 0,
Odin = 1,
Contextless = 2,
Pure = 3,
CDecl = 4,
Std_Call = 5,
Fast_Call = 6,
CDecl = 3,
Std_Call = 4,
Fast_Call = 5,
None = 7,
Pure_None = 8,
None = 6,
}
Type_Info_Enum_Value :: distinct i64;