Compare commits
1 Commits
6673599486
...
74b9a2b0ff
Author | SHA1 | Date | |
---|---|---|---|
74b9a2b0ff |
@ -1843,9 +1843,7 @@ get_bit_size = fn (type: &Type) u64
|
|||||||
},
|
},
|
||||||
.array =>
|
.array =>
|
||||||
{
|
{
|
||||||
>element_bit_size = get_byte_size(type.content.array.element_type) * 8;
|
return get_bit_size(type.content.array.element_type);
|
||||||
>result = element_bit_size * type.content.array.element_count;
|
|
||||||
return result;
|
|
||||||
},
|
},
|
||||||
.enum =>
|
.enum =>
|
||||||
{
|
{
|
||||||
@ -8260,18 +8258,8 @@ resolve_type_in_place_debug = fn (module: &Module, type: &Type) void
|
|||||||
.integer =>
|
.integer =>
|
||||||
{
|
{
|
||||||
>bit_count = type.content.integer.bit_count;
|
>bit_count = type.content.integer.bit_count;
|
||||||
>dwarf_encoding: LLVMDwarfTypeEncoding = undefined;
|
>dwarf_encoding: LLVMDwarfTypeEncoding = #select(type.content.integer.signed, .signed, .unsigned);
|
||||||
|
dwarf_encoding = #select(bit_count == 1, .boolean, dwarf_encoding);
|
||||||
if (bit_count == 1)
|
|
||||||
{
|
|
||||||
dwarf_encoding = .boolean;
|
|
||||||
bit_count = 8;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
dwarf_encoding = #select(type.content.integer.signed, .signed, .unsigned);
|
|
||||||
}
|
|
||||||
|
|
||||||
>flags: LLVMDIFlags = zero;
|
>flags: LLVMDIFlags = zero;
|
||||||
result = LLVMDIBuilderCreateBasicType(module.llvm.di_builder, type.name.pointer, type.name.length, bit_count, dwarf_encoding, flags);
|
result = LLVMDIBuilderCreateBasicType(module.llvm.di_builder, type.name.pointer, type.name.length, bit_count, dwarf_encoding, flags);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user