diff options
| author | Meghan Denny <hello@nektro.net> | 2023-11-25 15:02:32 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-11-26 02:24:40 -0500 |
| commit | 2549de80b226cddd0664ce4ad8c40887101f302b (patch) | |
| tree | 9674c446649114e88339256b24ef00660e1a168b /src/codegen.zig | |
| parent | 7103088e4a51d4362e6665d5949a9677e18fb74a (diff) | |
| download | zig-2549de80b226cddd0664ce4ad8c40887101f302b.tar.gz zig-2549de80b226cddd0664ce4ad8c40887101f302b.zip | |
move Module.Decl.Index and Module.Namespace.Index to InternPool
Diffstat (limited to 'src/codegen.zig')
| -rw-r--r-- | src/codegen.zig | 8 |
1 files changed, 4 insertions, 4 deletions
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; |
