# LLVM: move many DeclGen methods to Object · gitcafe/zig

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

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

Visibility: public

Requested revision: a5e15eced0e9cb00871966ede74eed9b3a07183c

Requested commit: a5e15eced0e9cb00871966ede74eed9b3a07183c

Commit: a5e15eced0e9cb00871966ede74eed9b3a07183c

Tree: 3664db39697a0d16ba491b13d9b0655e4ae705f8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
LLVM: move many DeclGen methods to Object

DeclGen/FuncGen methods are for things that pertain to a particular
declaration or function, while Object methods are for things that
pertain to the entire LLVM Module. Many methods were in the wrong
category, such as type and value lowering.

This is a prerequisite commit for a local branch I am working on, which
needs to be able to call lowerValue() without the context of any
particular function or declaration.

```

## Parents

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

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