aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-09-10 15:56:27 -0400
committerGitHub <noreply@github.com>2020-09-10 15:56:27 -0400
commit2315331d23d1cfe38f431ec5b81e52101e01dfd7 (patch)
tree7ce52b1c1034cb4ad145721218f69bc699410a59 /src/analyze.cpp
parentea9b38c93c38e402c807b20802eb003bcc4ddc5b (diff)
parent51fcf949f97d068e917c0c3301ba63a4a305ab6e (diff)
downloadzig-2315331d23d1cfe38f431ec5b81e52101e01dfd7.tar.gz
zig-2315331d23d1cfe38f431ec5b81e52101e01dfd7.zip
Merge pull request #5527 from shawnanastasio/ppc64le
Implement support for powerpc64{,le}
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index b1d362f6e9..87cc38291f 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -1003,7 +1003,8 @@ bool want_first_arg_sret(CodeGen *g, FnTypeId *fn_type_id) {
g->zig_target->arch == ZigLLVM_x86_64 ||
target_is_arm(g->zig_target) ||
target_is_riscv(g->zig_target) ||
- target_is_wasm(g->zig_target))
+ target_is_wasm(g->zig_target) ||
+ target_is_ppc(g->zig_target))
{
X64CABIClass abi_class = type_c_abi_x86_64_class(g, fn_type_id->return_type);
return abi_class == X64CABIClass_MEMORY || abi_class == X64CABIClass_MEMORY_nobyval;