# compiler: minor refactors to ZCU linking · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/424e6ac54b0f8bbfb43f24e28c71ac72169f3719)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 424e6ac54b0f8bbfb43f24e28c71ac72169f3719

Requested commit: 424e6ac54b0f8bbfb43f24e28c71ac72169f3719

Commit: 424e6ac54b0f8bbfb43f24e28c71ac72169f3719

Tree: f979f0e580e4ebff81eac779da8cb4889d57f1b1

Author: mlugg

Committer: mlugg

## Message

```
compiler: minor refactors to ZCU linking

* The `codegen_nav`, `codegen_func`, `codegen_type` tasks are renamed to
  `link_nav`, `link_func`, and `link_type`, to more accurately reflect
  their purpose of sending data to the *linker*. Currently, `link_func`
  remains responsible for codegen; this will change in an upcoming
  commit.

* Don't go on a pointless detour through `PerThread` when linking ZCU
  functions/`Nav`s; so, the `linkerUpdateNav` etc logic now lives in
  `link.zig`. Currently, `linkerUpdateFunc` is an exception, because it
  has broader responsibilities including codegen, but this will be
  solved in an upcoming commit.

```

## Parents

- [4a02e080d127cc577d40f8ea5d68122ba8ac4243](https://git.cafe/gitcafe/zig/commit/4a02e080d127cc577d40f8ea5d68122ba8ac4243?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/424e6ac54b0f8bbfb43f24e28c71ac72169f3719?format=markdown)
