# stage2: move link.File.ELF.SrcFn field from Module.Fn to Module.Decl · gitcafe/zig

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

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

Visibility: public

Requested revision: 9b3a70c8aab74b804cac0d7c15e4e7518a88c868

Requested commit: 9b3a70c8aab74b804cac0d7c15e4e7518a88c868

Commit: 9b3a70c8aab74b804cac0d7c15e4e7518a88c868

Tree: 34e835a80ed4d835356fb1402c049d9ad65c0699

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: move link.File.ELF.SrcFn field from Module.Fn to Module.Decl

SrcFn represents the function in the linked output file, if the
`Decl` is a function. This is stored here and not in `Fn` because `Decl`
survives across updates but `Fn` does not.

TODO Look into making `Fn` a longer lived structure and moving this field there
to save on memory usage.

```

## Parents

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

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