aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-04-18 00:05:09 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-04-18 00:05:09 -0400
commit407916cd2f3f4931de29fd87b8c9ae3faeba8452 (patch)
tree5ee194f80ce127d81e220869cd56bb53c1c04f17 /src
parentdef4fbc9ab704b1add5c3af40692b3d26594e58e (diff)
downloadzig-407916cd2f3f4931de29fd87b8c9ae3faeba8452.tar.gz
zig-407916cd2f3f4931de29fd87b8c9ae3faeba8452.zip
rename `@intType` to `@IntType` to follow convention
closes #327
Diffstat (limited to 'src')
-rw-r--r--src/codegen.cpp2
-rw-r--r--src/ir_print.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 38e0b37250..7222cd3fc8 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -4500,7 +4500,7 @@ static void define_builtin_fns(CodeGen *g) {
create_builtin_fn(g, BuiltinFnIdTruncate, "truncate", 2);
create_builtin_fn(g, BuiltinFnIdCompileErr, "compileError", 1);
create_builtin_fn(g, BuiltinFnIdCompileLog, "compileLog", SIZE_MAX);
- create_builtin_fn(g, BuiltinFnIdIntType, "intType", 2);
+ create_builtin_fn(g, BuiltinFnIdIntType, "IntType", 2);
create_builtin_fn(g, BuiltinFnIdSetDebugSafety, "setDebugSafety", 2);
create_builtin_fn(g, BuiltinFnIdSetGlobalAlign, "setGlobalAlign", 2);
create_builtin_fn(g, BuiltinFnIdSetGlobalSection, "setGlobalSection", 2);
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index e16e795c4d..7670dfa09e 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -602,7 +602,7 @@ static void ir_print_truncate(IrPrint *irp, IrInstructionTruncate *instruction)
}
static void ir_print_int_type(IrPrint *irp, IrInstructionIntType *instruction) {
- fprintf(irp->f, "@intType(");
+ fprintf(irp->f, "@IntType(");
ir_print_other_instruction(irp, instruction->is_signed);
fprintf(irp->f, ", ");
ir_print_other_instruction(irp, instruction->bit_count);