diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-22 14:24:30 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-22 14:24:30 +0100 |
| commit | 8a86c4c7cc65415f7b4bc8648019805e86016f21 (patch) | |
| tree | c1b14d2f1d7e440dd6726f0158bd6c9981eed7cd | |
| parent | 1c9f48031deb4a214735de4b5206b4837a0cacfc (diff) | |
Remove old code
| -rw-r--r-- | src/llvm_backend.cpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 789d3203c..c6981159f 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -2587,6 +2587,7 @@ lbProcedure *lb_create_procedure(lbModule *m, Entity *entity) { } + // lbCallingConventionKind cc_kind = lbCallingConvention_C; // // TODO(bill): Clean up this logic // if (build_context.metrics.os != TargetOs_js) { @@ -2636,26 +2637,16 @@ lbProcedure *lb_create_procedure(lbModule *m, Entity *entity) { for (isize i = 0; i < pt->Proc.param_count; i++) { Entity *e = params->variables[i]; Type *original_type = e->type; - Type *abi_type = pt->Proc.abi_compat_params[i]; if (e->kind != Entity_Variable) continue; if (i+1 == params->variables.count && pt->Proc.c_vararg) { continue; } - if (is_type_tuple(abi_type)) { - for_array(j, abi_type->Tuple.variables) { - Type *tft = abi_type->Tuple.variables[j]->type; - if (e->flags&EntityFlag_NoAlias) { - lb_add_proc_attribute_at_index(p, offset+parameter_index+j, "noalias"); - } - } - parameter_index += abi_type->Tuple.variables.count; - } else { - if (e->flags&EntityFlag_NoAlias) { - lb_add_proc_attribute_at_index(p, offset+parameter_index, "noalias"); - } - parameter_index += 1; + + if (e->flags&EntityFlag_NoAlias) { + lb_add_proc_attribute_at_index(p, offset+parameter_index, "noalias"); } + parameter_index += 1; } } |