about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-09-30 20:46:46 +0200
committerGitHub <noreply@github.com>2025-09-30 20:46:46 +0200
commit6e577e18c6324ff63aeb1d31fe78591c09c9dd6c (patch)
tree8f4734420e9134b82e8909b6f3f7e154d8619470 /tests
parent4cbaa701012bf646185f924980d0fd5fb65b925c (diff)
parentcc6329a9bcd78c4531e9713775e2936fe223e601 (diff)
downloadrust-6e577e18c6324ff63aeb1d31fe78591c09c9dd6c.tar.gz
rust-6e577e18c6324ff63aeb1d31fe78591c09c9dd6c.zip
Rollup merge of #147181 - Zalathar:fixed-metadata, r=petrochenkov
cg_llvm: Replace enum `MetadataType` with a list of `MetadataKindId` constants

The metadata kind ID values declared in `MetadataType` are not part of the LLVM-C API, and are not machine-checked. If a value that we use ever goes out of sync with LLVM, the resulting bugs could be difficult to track down. And the existing values lack any clear indication of what LLVM declarations they correspond to.

On top of that, we currently have another way of expressing metadata kind IDs in the form of `MetadataKindId`, which creates confusing inconsistency in LLVM bindings.

This PR therefore consolidates all usage of “fixed” metadata kind IDs into one list of `MetadataKindId` constants, which is backed by static assertions in our C++ code that match them up with named anonymous-enum variants in `llvm::LLVMContext`.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions