aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug/Dwarf/abi.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-06-13 04:46:30 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2025-06-19 11:45:06 -0400
commit917640810e7f3e18daff9e75b5ecefe761a1896c (patch)
tree579e627d695f898d411a3cb1fbc0578d1a763cc2 /lib/std/debug/Dwarf/abi.zig
parent16d78bc0c024da307c7ab5f6b94622e6b4b37397 (diff)
downloadzig-917640810e7f3e18daff9e75b5ecefe761a1896c.tar.gz
zig-917640810e7f3e18daff9e75b5ecefe761a1896c.zip
Target: pass and use locals by pointer instead of by value
This struct is larger than 256 bytes and code that copies it consistently shows up in profiles of the compiler.
Diffstat (limited to 'lib/std/debug/Dwarf/abi.zig')
-rw-r--r--lib/std/debug/Dwarf/abi.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug/Dwarf/abi.zig b/lib/std/debug/Dwarf/abi.zig
index 001e1977f9..e880b12863 100644
--- a/lib/std/debug/Dwarf/abi.zig
+++ b/lib/std/debug/Dwarf/abi.zig
@@ -9,7 +9,7 @@ const Arch = std.Target.Cpu.Arch;
///
/// See also `std.debug.SelfInfo.supportsUnwinding` which tells whether the Zig
/// standard library has a working implementation of unwinding for this target.
-pub fn supportsUnwinding(target: std.Target) bool {
+pub fn supportsUnwinding(target: *const std.Target) bool {
return switch (target.cpu.arch) {
.amdgcn,
.nvptx,