From 2549de80b226cddd0664ce4ad8c40887101f302b Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 25 Nov 2023 15:02:32 -0800 Subject: move Module.Decl.Index and Module.Namespace.Index to InternPool --- src/codegen.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/codegen.zig') diff --git a/src/codegen.zig b/src/codegen.zig index ed5ac8ff0a..b7f50c2174 100644 --- a/src/codegen.zig +++ b/src/codegen.zig @@ -757,7 +757,7 @@ fn lowerAnonDeclRef( fn lowerDeclRef( bin_file: *link.File, src_loc: Module.SrcLoc, - decl_index: Module.Decl.Index, + decl_index: InternPool.DeclIndex, code: *std.ArrayList(u8), debug_output: DebugInfoOutput, reloc_info: RelocInfo, @@ -853,7 +853,7 @@ fn genDeclRef( bin_file: *link.File, src_loc: Module.SrcLoc, tv: TypedValue, - ptr_decl_index: Module.Decl.Index, + ptr_decl_index: InternPool.DeclIndex, ) CodeGenError!GenResult { const mod = bin_file.options.module.?; log.debug("genDeclRef: ty = {}, val = {}", .{ tv.ty.fmt(mod), tv.val.fmtValue(tv.ty, mod) }); @@ -959,7 +959,7 @@ fn genUnnamedConst( bin_file: *link.File, src_loc: Module.SrcLoc, tv: TypedValue, - owner_decl_index: Module.Decl.Index, + owner_decl_index: InternPool.DeclIndex, ) CodeGenError!GenResult { const mod = bin_file.options.module.?; log.debug("genUnnamedConst: ty = {}, val = {}", .{ tv.ty.fmt(mod), tv.val.fmtValue(tv.ty, mod) }); @@ -987,7 +987,7 @@ pub fn genTypedValue( bin_file: *link.File, src_loc: Module.SrcLoc, arg_tv: TypedValue, - owner_decl_index: Module.Decl.Index, + owner_decl_index: InternPool.DeclIndex, ) CodeGenError!GenResult { const mod = bin_file.options.module.?; const typed_value = arg_tv; -- cgit v1.2.3