aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-05-15 01:05:24 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-05-15 01:05:24 -0700
commit6ff996f60fa4e26e8dc5a8556986b5caa3eb1021 (patch)
treed38579da50304852f292f7ccb555bef87562ba43 /src/codegen.cpp
parent50310cf9df75217cba0edf2420a8af8d560d4b3e (diff)
downloadzig-6ff996f60fa4e26e8dc5a8556986b5caa3eb1021.tar.gz
zig-6ff996f60fa4e26e8dc5a8556986b5caa3eb1021.zip
add int_type builtin function
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index b8ffb1869c..122dac5b42 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -540,6 +540,7 @@ static LLVMValueRef gen_builtin_fn_call_expr(CodeGen *g, AstNode *node) {
case BuiltinFnIdImport:
case BuiltinFnIdCImport:
case BuiltinFnIdCompileErr:
+ case BuiltinFnIdIntType:
zig_unreachable();
case BuiltinFnIdCtz:
case BuiltinFnIdClz:
@@ -4657,6 +4658,7 @@ static void define_builtin_fns(CodeGen *g) {
create_builtin_fn_with_arg_count(g, BuiltinFnIdDivExact, "div_exact", 2);
create_builtin_fn_with_arg_count(g, BuiltinFnIdTruncate, "truncate", 2);
create_builtin_fn_with_arg_count(g, BuiltinFnIdCompileErr, "compile_err", 1);
+ create_builtin_fn_with_arg_count(g, BuiltinFnIdIntType, "int_type", 3);
}
static void init(CodeGen *g, Buf *source_path) {