Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stage2 LLVM debug info #11085

Merged
merged 11 commits into from
Mar 9, 2022
2 changes: 1 addition & 1 deletion doc/langref.html.in
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ const @"identifier with spaces in it" = 0xff;
const @"1SmallStep4Man" = 112358;

const c = @import("std").c;
pub extern "c" fn @"error"() anyopaque;
pub extern "c" fn @"error"() void;
pub extern "c" fn @"fstat$INODE64"(fd: c.fd_t, buf: *c.Stat) c_int;

const Color = enum {
Expand Down
15 changes: 15 additions & 0 deletions lib/std/dwarf.zig
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,21 @@ pub const LNCT = struct {
pub const hi_user = 0x3fff;
};

pub const CC = enum(u8) {
normal = 0x1,
program = 0x2,
nocall = 0x3,

pass_by_reference = 0x4,
pass_by_value = 0x5,

lo_user = 0x40,
hi_user = 0xff,

GNU_renesas_sh = 0x40,
GNU_borland_fastcall_i386 = 0x41,
};

const PcRange = struct {
start: u64,
end: u64,
Expand Down
2 changes: 1 addition & 1 deletion src/Compilation.zig
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {
// We put the `Compilation` itself in the arena. Freeing the arena will free the module.
// It's initialized later after we prepare the initialization options.
const comp = try arena.create(Compilation);
const root_name = try arena.dupe(u8, options.root_name);
const root_name = try arena.dupeZ(u8, options.root_name);

const ofmt = options.object_format orelse options.target.getObjectFormat();

Expand Down
2 changes: 1 addition & 1 deletion src/Sema.zig
Original file line number Diff line number Diff line change
Expand Up @@ -12405,7 +12405,7 @@ fn zirTypeName(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
var anon_decl = try block.startAnonDecl(LazySrcLoc.unneeded);
defer anon_decl.deinit();

const bytes = try ty.nameAlloc(anon_decl.arena());
const bytes = try ty.nameAllocArena(anon_decl.arena());

const new_decl = try anon_decl.finish(
try Type.Tag.array_u8_sentinel_0.create(anon_decl.arena(), bytes.len),
Expand Down
Loading