From 5774b48ceb7cdca7fbf3dd19fff4a0e42228473f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 7 May 2017 19:51:44 -0400 Subject: rename c_long_double to c_longdouble to be consistent with other c primitive type names --- src/codegen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index 49dec3589e..3da7fb186b 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -4250,14 +4250,14 @@ static void define_builtin_types(CodeGen *g) { { TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdFloat); entry->type_ref = LLVMX86FP80Type(); - buf_init_from_str(&entry->name, "c_long_double"); + buf_init_from_str(&entry->name, "c_longdouble"); entry->data.floating.bit_count = 80; uint64_t debug_size_in_bits = 8*LLVMStoreSizeOfType(g->target_data_ref, entry->type_ref); entry->di_type = ZigLLVMCreateDebugBasicType(g->dbuilder, buf_ptr(&entry->name), debug_size_in_bits, ZigLLVMEncoding_DW_ATE_float()); - g->builtin_types.entry_c_long_double = entry; + g->builtin_types.entry_c_longdouble = entry; g->primitive_type_table.put(&entry->name, entry); } { @@ -4902,7 +4902,7 @@ static void get_c_type(CodeGen *g, TypeTableEntry *type_entry, Buf *out_buf) { return; } } - if (type_entry == g->builtin_types.entry_c_long_double) { + if (type_entry == g->builtin_types.entry_c_longdouble) { buf_init_from_str(out_buf, "long double"); return; } -- cgit v1.2.3