aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-02-26 15:51:32 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-02-26 15:58:10 -0500
commitade10387a583351fe597b58c4c9ceb97d959adf5 (patch)
tree5e508bc243ec6e65c1d2a11908d7e28bcf0b8c48 /src/analyze.cpp
parent1ec1097bd389b9af1b3e40d9edbc4c1c0b65f6a1 (diff)
downloadzig-ade10387a583351fe597b58c4c9ceb97d959adf5.tar.gz
zig-ade10387a583351fe597b58c4c9ceb97d959adf5.zip
breaking changes to the way targets work in zig
* CLI: `-target [name]` instead of `--target-*` args. This matches clang's API. * `builtin.Environ` renamed to `builtin.Abi` - likewise `builtin.environ` renamed to `builtin.abi` * stop hiding the concept of sub-arch. closes #1526 * `zig targets` only shows available targets. closes #438 * include all targets in readme, even those that don't print with `zig targets` but note they are Tier 4 * refactor target.cpp and make the naming conventions more consistent * introduce the concept of a "default C ABI" for a given OS/Arch combo. As a rule of thumb, if the system compiler is clang or gcc then the default C ABI is the gnu ABI.
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 5d9b0df8ee..a6c158a780 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -1102,7 +1102,7 @@ bool want_first_arg_sret(CodeGen *g, FnTypeId *fn_type_id) {
if (type_is_c_abi_int(g, fn_type_id->return_type)) {
return false;
}
- if (g->zig_target->arch.arch == ZigLLVM_x86_64) {
+ if (g->zig_target->arch == ZigLLVM_x86_64) {
X64CABIClass abi_class = type_c_abi_x86_64_class(g, fn_type_id->return_type);
return abi_class == X64CABIClass_MEMORY;
} else if (target_is_arm(g->zig_target)) {