authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-03-15 19:42:48-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-03-16 00:09:00-07:00
logcfc31b5bbdf67632626eb934886cdeaefe40e595
tree831b92a6378244bc1701b7685586b356d31fa36b
parent2583be7585d66ff6962434c7861db9b50aa64154

std.dwarf: avoid some async/await stuff in stage2 builds


1 files changed, 4 insertions(+), 0 deletions(-)

lib/std/dwarf.zig+4
...@@ -1,3 +1,4 @@...@@ -1,3 +1,4 @@
1const builtin = @import("builtin");
1const std = @import("std.zig");2const std = @import("std.zig");
2const debug = std.debug;3const debug = std.debug;
3const fs = std.fs;4const fs = std.fs;
...@@ -502,6 +503,9 @@ fn parseFormValue(allocator: mem.Allocator, in_stream: anytype, form_id: u64, en...@@ -502,6 +503,9 @@ fn parseFormValue(allocator: mem.Allocator, in_stream: anytype, form_id: u64, en
502 FORM.line_strp => FormValue{ .LineStrPtr = try readAddress(in_stream, endian, is_64) },503 FORM.line_strp => FormValue{ .LineStrPtr = try readAddress(in_stream, endian, is_64) },
503 FORM.indirect => {504 FORM.indirect => {
504 const child_form_id = try nosuspend leb.readULEB128(u64, in_stream);505 const child_form_id = try nosuspend leb.readULEB128(u64, in_stream);
506 if (builtin.zig_backend != .stage1) {
507 return parseFormValue(allocator, in_stream, child_form_id, endian, is_64);
508 }
505 const F = @TypeOf(async parseFormValue(allocator, in_stream, child_form_id, endian, is_64));509 const F = @TypeOf(async parseFormValue(allocator, in_stream, child_form_id, endian, is_64));
506 var frame = try allocator.create(F);510 var frame = try allocator.create(F);
507 defer allocator.destroy(frame);511 defer allocator.destroy(frame);