aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorJosh Wolfe <thejoshwolfe@gmail.com>2015-12-15 04:05:43 -0700
committerJosh Wolfe <thejoshwolfe@gmail.com>2015-12-15 04:05:53 -0700
commitf2a9b40231f982b10c4d098c60b47da890396c1f (patch)
tree63a8b8af9120203ff6f7dfaa05681346276e3c94 /src/codegen.cpp
parentcf88fcb2ad31b64296d906ef525e76bbe6c3f65e (diff)
downloadzig-f2a9b40231f982b10c4d098c60b47da890396c1f.tar.gz
zig-f2a9b40231f982b10c4d098c60b47da890396c1f.zip
more number literal syntax is supported. floats still need work
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 254e9f4d23..699769f513 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -1254,13 +1254,9 @@ static const NumLit num_lit_kinds[] = {
NumLitF32,
NumLitF64,
NumLitF128,
- NumLitI8,
NumLitU8,
- NumLitI16,
NumLitU16,
- NumLitI32,
NumLitU32,
- NumLitI64,
NumLitU64,
};
@@ -1388,7 +1384,7 @@ static void define_builtin_types(CodeGen *g) {
}
{
TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdFloat);
- entry->type_ref = LLVMFloatType();
+ entry->type_ref = LLVMDoubleType();
buf_init_from_str(&entry->name, "f64");
entry->size_in_bits = 64;
entry->align_in_bits = 64;