# LLVM: put sancov globals into llvm.compiler.used · gitcafe/zig

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

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

Visibility: public

Requested revision: 9e11c4f60ea56af50bed7bb27984307762d5f167

Requested commit: 9e11c4f60ea56af50bed7bb27984307762d5f167

Commit: 9e11c4f60ea56af50bed7bb27984307762d5f167

Tree: 2436a6f651a480fbc0f8b63f8947e05393cdaee1

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
LLVM: put sancov globals into llvm.compiler.used

This matches what LLVM's sancov pass does and is required so that
optimization passes do not delete the instrumentation.

However, this is currently triggering an error: "members of
llvm.compiler.used must be named" so the next commit will add names to
those globals.

```

## Parents

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

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