srctree

antlilja parent 791e28bb 147beec7
LLVM Builder: Fix emission of enum debug enumerator info bitcode

inlinesplit
src/codegen/llvm.zig added: 5, removed: 7, total 0
@@ -2013,7 +2013,7 @@ pub const Object = struct {
 
enumerators[i] = try o.builder.debugEnumerator(
try o.builder.metadataString(ip.stringToSlice(field_name_ip)),
int_ty.isUnsignedInt(mod),
int_info.signedness == .unsigned,
int_info.bits,
bigint,
);
 
src/codegen/llvm/Builder.zig added: 5, removed: 7, total 0
@@ -14367,7 +14367,6 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
try metadata_block.writeAbbrevAdapted(MetadataBlock.Enumerator{
.flags = .{
.unsigned = unsigned,
.bigint = false,
},
.bit_width = extra.bit_width,
.name = extra.name,
@@ -14379,7 +14378,6 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
 
const flags: MetadataBlock.Enumerator.Flags = .{
.unsigned = unsigned,
.bigint = true,
};
 
const FlagsInt = @typeInfo(MetadataBlock.Enumerator.Flags).Struct.backing_integer.?;
 
src/codegen/llvm/ir.zig added: 5, removed: 7, total 0
@@ -896,7 +896,7 @@ pub const MetadataBlock = struct {
pub const Flags = packed struct(u3) {
distinct: bool = false,
unsigned: bool,
bigint: bool,
bigint: bool = true,
};
 
pub const ops = [_]AbbrevOp{