aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-13 20:05:41 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-05-13 20:05:41 -0700
commitedab03bc22018fa66125ecff4d22d09770852a8e (patch)
tree477c454f4152e06787a1524f2c07589461eeba07 /src/codegen.zig
parent78632894dabec3c20ee2ff4348e03cfa565477ef (diff)
downloadzig-edab03bc22018fa66125ecff4d22d09770852a8e.tar.gz
zig-edab03bc22018fa66125ecff4d22d09770852a8e.zip
link/MachO: fixes to debug symbols
commitDeclDebugInfo: stop trying to write length 0 debug info - avoids hitting an error where zig tries to move the debug info section unnecessarily, gets confused, and reports `error.InputOutput`. The 2 pieces of code that looked at the source and tried to compute source line offsets is now improved to match link/Elf - use the line/column data stored in the Decl object to skip the costly scanning of source bytes. No need to load Zig source code, AST, or tokens, when we have the ZIR!
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions