Add "naked" calling convention (removes prologue and epilogue)

This commit is contained in:
gingerBill
2021-04-28 10:49:30 +01:00
parent afe185ee22
commit 24fce21d90
7 changed files with 15 additions and 1 deletions
+4
View File
@@ -2588,6 +2588,10 @@ lbProcedure *lb_create_procedure(lbModule *m, Entity *entity) {
lb_add_attribute_to_proc(m, p->value, "noreturn");
}
if (pt->Proc.calling_convention == ProcCC_Naked) {
lb_add_attribute_to_proc(m, p->value, "naked");
}
switch (p->inlining) {
case ProcInlining_inline:
lb_add_attribute_to_proc(m, p->value, "alwaysinline");