# link: support exporting constant values without a Decl · gitcafe/zig

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

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

Visibility: public

Requested revision: 4bc88dd11641a664d80b00ad784bafc6da776697

Requested commit: 4bc88dd11641a664d80b00ad784bafc6da776697

Commit: 4bc88dd11641a664d80b00ad784bafc6da776697

Tree: 0dfff49ae93d5826a0c10e3819a1225e4f992693

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
link: support exporting constant values without a Decl

The main motivating change here is to prevent the creation of a fake
Decl object by the frontend in order to `@export()` a value.

Instead, `link.updateDeclExports` is renamed to `link.updateExports` and
accepts a tagged union which can be either a Decl.Index or a
InternPool.Index.

```

## Parents

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

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