rename compileErr builtin to compileError

This commit is contained in:
Andrew Kelley 2016-09-05 17:01:54 -04:00
parent f2a5fe443c
commit 768a9780ca
5 changed files with 12 additions and 12 deletions

View File

@ -4849,7 +4849,7 @@ static void define_builtin_fns(CodeGen *g) {
create_builtin_fn_with_arg_count(g, BuiltinFnIdFence, "fence", 1);
create_builtin_fn_with_arg_count(g, BuiltinFnIdDivExact, "divExact", 2);
create_builtin_fn_with_arg_count(g, BuiltinFnIdTruncate, "truncate", 2);
create_builtin_fn_with_arg_count(g, BuiltinFnIdCompileErr, "compileErr", 1);
create_builtin_fn_with_arg_count(g, BuiltinFnIdCompileErr, "compileError", 1);
create_builtin_fn_with_arg_count(g, BuiltinFnIdIntType, "intType", 2);
}

View File

@ -25,7 +25,7 @@ export fn _start() -> unreachable {
argc = asm("mov (%%esp), %[argc]": [argc] "=r" (-> usize));
argv = asm("lea 0x4(%%esp), %[argv]": [argv] "=r" (-> &&u8));
},
else => @compileErr("unsupported arch"),
else => @compileError("unsupported arch"),
}
callMainAndExit()
}

View File

@ -187,7 +187,7 @@ pub struct InStream {
return;
}
},
else => @compileErr("unsupported OS"),
else => @compileError("unsupported OS"),
}
}
@ -208,7 +208,7 @@ pub struct InStream {
}
}
},
else => @compileErr("unsupported OS"),
else => @compileError("unsupported OS"),
}
}
@ -237,7 +237,7 @@ pub struct InStream {
}
return index;
},
else => @compileErr("unsupported OS"),
else => @compileError("unsupported OS"),
}
}
@ -298,7 +298,7 @@ pub struct InStream {
};
}
},
else => @compileErr("unsupported OS"),
else => @compileError("unsupported OS"),
}
}
@ -318,7 +318,7 @@ pub struct InStream {
};
}
},
else => @compileErr("unsupported OS"),
else => @compileError("unsupported OS"),
}
}
@ -339,7 +339,7 @@ pub struct InStream {
}
return result;
},
else => @compileErr("unsupported OS"),
else => @compileError("unsupported OS"),
}
}
@ -433,6 +433,6 @@ pub fn openSelfExe(stream: &InStream) -> %void {
linux => {
%return stream.open("/proc/self/exe");
},
else => @compileErr("unsupported os"),
else => @compileError("unsupported os"),
}
}

View File

@ -18,7 +18,7 @@ pub fn getRandomBytes(buf: []u8) -> %void {
}
}
},
else => @compileErr("unsupported os"),
else => @compileError("unsupported os"),
}
}
@ -30,6 +30,6 @@ pub fn abort() -> unreachable {
linux.raise(linux.SIGKILL);
while (true) {}
},
else => @compileErr("unsupported os"),
else => @compileError("unsupported os"),
}
}

View File

@ -87,7 +87,7 @@ pub struct Rand {
} else if (T == f64) {
9007199254740992
} else {
@compileErr("unknown floating point type" ++ @typeName(T))
@compileError("unknown floating point type" ++ @typeName(T))
};
return T(r.rangeUnsigned(int_type, 0, precision)) / T(precision);
}