From a61def10c66abc871f92c84d9cef85b6b7752cbf Mon Sep 17 00:00:00 2001 From: mlugg Date: Tue, 26 Mar 2024 05:38:32 +0000 Subject: compiler: eliminate most usages of TypedValue --- src/link.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/link.zig') diff --git a/src/link.zig b/src/link.zig index 6034d8df49..9e1daa09af 100644 --- a/src/link.zig +++ b/src/link.zig @@ -17,7 +17,7 @@ const Liveness = @import("Liveness.zig"); const Module = @import("Module.zig"); const InternPool = @import("InternPool.zig"); const Type = @import("type.zig").Type; -const TypedValue = @import("TypedValue.zig"); +const Value = @import("Value.zig"); const LlvmObject = @import("codegen/llvm.zig").Object; /// When adding a new field, remember to update `hashAddSystemLibs`. @@ -376,14 +376,14 @@ pub const File = struct { /// Called from within the CodeGen to lower a local variable instantion as an unnamed /// constant. Returns the symbol index of the lowered constant in the read-only section /// of the final binary. - pub fn lowerUnnamedConst(base: *File, tv: TypedValue, decl_index: InternPool.DeclIndex) UpdateDeclError!u32 { + pub fn lowerUnnamedConst(base: *File, val: Value, decl_index: InternPool.DeclIndex) UpdateDeclError!u32 { if (build_options.only_c) @compileError("unreachable"); switch (base.tag) { .spirv => unreachable, .c => unreachable, .nvptx => unreachable, inline else => |t| { - return @fieldParentPtr(t.Type(), "base", base).lowerUnnamedConst(tv, decl_index); + return @fieldParentPtr(t.Type(), "base", base).lowerUnnamedConst(val, decl_index); }, } } -- cgit v1.2.3