# stage2: restructure LLVM backend · gitcafe/zig

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

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

Visibility: public

Requested revision: a710368054096889385562addaed2d16f0705332

Requested commit: a710368054096889385562addaed2d16f0705332

Commit: a710368054096889385562addaed2d16f0705332

Tree: 66cc9673d9bd3ddd914aafeee964d50e55cf4d50

Author: Timon Kruiper

Committer: Andrew Kelley

## Message

```
stage2: restructure LLVM backend

The LLVM backend is now structured into 3 different structs, namely
Object, DeclGen and FuncGen. Object represents an object that is
generated by the LLVM backend. DeclGen is responsible for generating
a decl and FuncGen is responsible for generating llvm instructions
from tzir in a function.

```

## Parents

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

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