aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorMovingtoMars <liam@bumblebee.net.nz>2016-01-20 21:32:11 +1300
committerMovingtoMars <liam@bumblebee.net.nz>2016-01-20 22:03:03 +1300
commit361531891f3ec3b4e55ee8b10325fe693c581918 (patch)
tree1acad8ed6841dbc6d59df1327b6f44af2e9fd2c4 /src/codegen.cpp
parent26b9d709aa579c16251796ae59defc799ccfaf39 (diff)
downloadzig-361531891f3ec3b4e55ee8b10325fe693c581918.tar.gz
zig-361531891f3ec3b4e55ee8b10325fe693c581918.zip
rename value_count to member_count
rename BuiltinFnIdValueCount to BuiltinFnIdMemberCount rename value_count to member_count
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 2d0caf8440..e97ad9a1e7 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -315,7 +315,7 @@ static LLVMValueRef gen_builtin_fn_call_expr(CodeGen *g, AstNode *node) {
zig_unreachable();
}
}
- case BuiltinFnIdValueCount:
+ case BuiltinFnIdMemberCount:
{
assert(node->data.fn_call_expr.params.length == 1);
AstNode *type_node = node->data.fn_call_expr.params.at(0);
@@ -2558,7 +2558,7 @@ static void define_builtin_fns(CodeGen *g) {
create_builtin_fn_with_arg_count(g, BuiltinFnIdSizeof, "sizeof", 1);
create_builtin_fn_with_arg_count(g, BuiltinFnIdMaxValue, "max_value", 1);
create_builtin_fn_with_arg_count(g, BuiltinFnIdMinValue, "min_value", 1);
- create_builtin_fn_with_arg_count(g, BuiltinFnIdValueCount, "value_count", 1);
+ create_builtin_fn_with_arg_count(g, BuiltinFnIdMemberCount, "member_count", 1);
create_builtin_fn_with_arg_count(g, BuiltinFnIdTypeof, "typeof", 1);
create_builtin_fn_with_arg_count(g, BuiltinFnIdAddWithOverflow, "add_with_overflow", 4);
create_builtin_fn_with_arg_count(g, BuiltinFnIdSubWithOverflow, "sub_with_overflow", 4);