# codegen: separate getAnonDeclVAddr into lowerAnonDecl and the former · gitcafe/zig

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

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

Visibility: public

Requested revision: 0134e5d2a1a5042b1485b7bb121870d2eaeb00b6

Requested commit: 0134e5d2a1a5042b1485b7bb121870d2eaeb00b6

Commit: 0134e5d2a1a5042b1485b7bb121870d2eaeb00b6

Tree: 1c5e41cffa699a0e396a08771152d6e024a61af5

Author: Jakub Konka

Committer: Andrew Kelley

## Message

```
codegen: separate getAnonDeclVAddr into lowerAnonDecl and the former

Implement the stub for Elf.

I believe that separating the concerns, namely, having an interface
function that is responsible for signalling the linker to lower
the anon decl only, and a separate function to obtain the decl's
vaddr is preferable since it allows us to handle codegen errors
in a simpler way.

```

## Parents

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

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