diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2021-10-26 21:08:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-26 21:08:08 +0100 |
| commit | c4d2aae0ed55d972b0074031ac82db6f9546447e (patch) | |
| tree | c23fe528ddaee43ea2c9ecfd5b95d93ef7fba467 /src/llvm_abi.cpp | |
| parent | c722665c3239019fe9f90d247726cc42c921e1db (diff) | |
| parent | 549a383cf06ad45edd634e67c27a1246323a9d8c (diff) | |
Merge pull request #1245 from odin-lang/new-matrix-type
`matrix` type
Diffstat (limited to 'src/llvm_abi.cpp')
| -rw-r--r-- | src/llvm_abi.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/llvm_abi.cpp b/src/llvm_abi.cpp index 8d3d5542f..9e7f4b290 100644 --- a/src/llvm_abi.cpp +++ b/src/llvm_abi.cpp @@ -153,7 +153,18 @@ void lb_add_function_type_attributes(LLVMValueRef fn, lbFunctionType *ft, ProcCa // TODO(bill): Clean up this logic if (!is_arch_wasm()) { cc_kind = lb_calling_convention_map[calling_convention]; - } + } + // if (build_context.metrics.arch == TargetArch_amd64) { + // if (build_context.metrics.os == TargetOs_windows) { + // if (cc_kind == lbCallingConvention_C) { + // cc_kind = lbCallingConvention_Win64; + // } + // } else { + // if (cc_kind == lbCallingConvention_C) { + // cc_kind = lbCallingConvention_X86_64_SysV; + // } + // } + // } LLVMSetFunctionCallConv(fn, cc_kind); if (calling_convention == ProcCC_Odin) { unsigned context_index = offset+arg_count; |