aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86_64/CodeGen.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2024-07-09 18:48:37 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2024-07-10 11:10:49 -0400
commit667b4f9054cd0d4c8e9912bddc18049d09107678 (patch)
tree8049d0f1dab34e4bf5994bd4aeacbd1ba7aa804d /src/arch/x86_64/CodeGen.zig
parent95d9292a7a09ed883e65510ec054619747315c48 (diff)
downloadzig-667b4f9054cd0d4c8e9912bddc18049d09107678.tar.gz
zig-667b4f9054cd0d4c8e9912bddc18049d09107678.zip
Zcu: cache fully qualified name on Decl
This avoids needing to mutate the intern pool from backends.
Diffstat (limited to 'src/arch/x86_64/CodeGen.zig')
-rw-r--r--src/arch/x86_64/CodeGen.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86_64/CodeGen.zig b/src/arch/x86_64/CodeGen.zig
index dafeed00b8..870716966f 100644
--- a/src/arch/x86_64/CodeGen.zig
+++ b/src/arch/x86_64/CodeGen.zig
@@ -1077,7 +1077,7 @@ fn formatDecl(
_: std.fmt.FormatOptions,
writer: anytype,
) @TypeOf(writer).Error!void {
- try data.zcu.declPtr(data.decl_index).renderFullyQualifiedName(data.zcu, writer);
+ try writer.print("{}", .{data.zcu.declPtr(data.decl_index).fqn.fmt(&data.zcu.intern_pool)});
}
fn fmtDecl(self: *Self, decl_index: InternPool.DeclIndex) std.fmt.Formatter(formatDecl) {
return .{ .data = .{