aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-20 02:09:07 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-20 02:09:07 -0700
commitf0f56a4a9bd416d4d6ecf9ff4766f70926715aa9 (patch)
tree1acad8ed6841dbc6d59df1327b6f44af2e9fd2c4 /src/codegen.cpp
parentebd8e2d6062bad96c9c1fbc0e73894a13e683831 (diff)
parent361531891f3ec3b4e55ee8b10325fe693c581918 (diff)
downloadzig-f0f56a4a9bd416d4d6ecf9ff4766f70926715aa9.tar.gz
zig-f0f56a4a9bd416d4d6ecf9ff4766f70926715aa9.zip
Merge pull request #80 from MovingtoMars/value_count_rename
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);