# macho: clean up allocating atom logic · gitcafe/zig

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

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

Visibility: public

Requested revision: 7a99cd069afed01b8573274c20f685e61d0950c8

Requested commit: 7a99cd069afed01b8573274c20f685e61d0950c8

Commit: 7a99cd069afed01b8573274c20f685e61d0950c8

Tree: 4410eab0ac04f55e110740777f73377b54624336

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: clean up allocating atom logic

Instead of checking for stage1 at every callsite, move the logic
inside `allocateAtom`. This is fine since this logic will disappear
anyhow once I add expanding and shifting segments and sections.

```

## Parents

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

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