aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-11-12 00:43:49 +0000
committergingerBill <bill@gingerbill.org>2020-11-12 00:43:49 +0000
commit70b8b3c7dde193c9c67e4b5fd86fd2f99ee1d987 (patch)
treeca915a1da9d46bb4a07915750dc421329e3ae8d0 /src/types.cpp
parent6ee4f51670e983347feb4acb15f681d56117c137 (diff)
Update LLVM backend to begin work on a generic ABI system
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index acc1c7b2e..528ea3a2d 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -886,6 +886,16 @@ Type *alloc_type_named(String name, Type *base, Entity *type_name) {
return t;
}
+bool is_calling_convention_none(ProcCallingConvention calling_convention) {
+ switch (calling_convention) {
+ case ProcCC_None:
+ case ProcCC_PureNone:
+ case ProcCC_InlineAsm:
+ return true;
+ }
+ return false;
+}
+
Type *alloc_type_tuple() {
Type *t = alloc_type(Type_Tuple);
return t;