aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-12-09 14:55:51 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-12-09 15:27:27 -0500
commita3f6a58c7785e7958f9d0b96d54356944bf34e32 (patch)
tree4e7ce7220eaeda3f3ee60cc10e93c4708d688639 /src/codegen.cpp
parentf205d23e650019dd66120cf122ffb449267f619b (diff)
downloadzig-a3f6a58c7785e7958f9d0b96d54356944bf34e32.tar.gz
zig-a3f6a58c7785e7958f9d0b96d54356944bf34e32.zip
remove var args from the language
closes #208
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 387d10a189..a7bf7a50c4 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -6539,7 +6539,6 @@ static LLVMValueRef pack_const_int(CodeGen *g, LLVMTypeRef big_int_type_ref, Zig
case ZigTypeIdErrorUnion:
case ZigTypeIdErrorSet:
case ZigTypeIdBoundFn:
- case ZigTypeIdArgTuple:
case ZigTypeIdVoid:
case ZigTypeIdOpaque:
zig_unreachable();
@@ -7182,7 +7181,6 @@ check: switch (const_val->special) {
case ZigTypeIdUndefined:
case ZigTypeIdNull:
case ZigTypeIdBoundFn:
- case ZigTypeIdArgTuple:
case ZigTypeIdOpaque:
zig_unreachable();
case ZigTypeIdFnFrame:
@@ -7887,11 +7885,6 @@ static void define_builtin_types(CodeGen *g) {
buf_init_from_str(&entry->name, "(var)");
g->builtin_types.entry_var = entry;
}
- {
- ZigType *entry = new_type_table_entry(ZigTypeIdArgTuple);
- buf_init_from_str(&entry->name, "(args)");
- g->builtin_types.entry_arg_tuple = entry;
- }
for (size_t i = 0; i < array_length(c_int_type_infos); i += 1) {
const CIntTypeInfo *info = &c_int_type_infos[i];
@@ -9532,7 +9525,6 @@ static void prepend_c_type_to_decl_list(CodeGen *g, GenH *gen_h, ZigType *type_e
case ZigTypeIdUndefined:
case ZigTypeIdNull:
case ZigTypeIdBoundFn:
- case ZigTypeIdArgTuple:
case ZigTypeIdErrorUnion:
case ZigTypeIdErrorSet:
case ZigTypeIdFnFrame:
@@ -9721,7 +9713,6 @@ static void get_c_type(CodeGen *g, GenH *gen_h, ZigType *type_entry, Buf *out_bu
case ZigTypeIdEnumLiteral:
case ZigTypeIdUndefined:
case ZigTypeIdNull:
- case ZigTypeIdArgTuple:
case ZigTypeIdFnFrame:
case ZigTypeIdAnyFrame:
zig_unreachable();
@@ -9781,7 +9772,6 @@ static void gen_h_file_types(CodeGen* g, GenH* gen_h, Buf* out_buf) {
case ZigTypeIdErrorUnion:
case ZigTypeIdErrorSet:
case ZigTypeIdBoundFn:
- case ZigTypeIdArgTuple:
case ZigTypeIdOptional:
case ZigTypeIdFn:
case ZigTypeIdVector: