aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-02-04 17:27:41 +0000
committermlugg <mlugg@mlugg.co.uk>2024-02-04 18:38:40 +0000
commit0d8207c29236bf731f7d3bad189beb3a1e1b1d0c (patch)
treed7cb3a14a5c3b9ce77f299b24502204318993913 /src/main.zig
parent269c1ae649017836f15313d1d4977402be11eed5 (diff)
downloadzig-0d8207c29236bf731f7d3bad189beb3a1e1b1d0c.tar.gz
zig-0d8207c29236bf731f7d3bad189beb3a1e1b1d0c.zip
Zcu: refactor Decl.analysis field
* Functions failing codegen now set this failure on the function analysis state. Decl analysis `codegen_failure` is reserved for failures generating constant values. * `liveness_failure` is consolidated into `codegen_failure`, as we do not need to distinguish these, and Liveness.Verify is just a debugging feature anyway. * `sema_failure_retryable` and `codegen_failure_retryable` are removed. Instead, retryable failures are recorded in the new `Zcu.retryable_failures` list. On an incremental update, this list is flushed, and all elements are marked as outdated so that we re-attempt analysis and code generation. Also remove the `generation` fields from `Zcu` and `Decl` as these are not needed by our new strategy for incremental updates.
Diffstat (limited to 'src/main.zig')
0 files changed, 0 insertions, 0 deletions