about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2024-03-25 17:23:55 +0000
committerMatthew Maurer <mmaurer@google.com>2024-04-02 19:11:16 +0000
commit473a70de8457645df7a49558d6ba27405f966ee0 (patch)
treed100972ea77c26933a4e7ea224a97f319f9df2cd /compiler/rustc_codegen_llvm/src/errors.rs
parent6aa89f684e4427a9d08e35b572f9071705105140 (diff)
downloadrust-473a70de8457645df7a49558d6ba27405f966ee0.tar.gz
rust-473a70de8457645df7a49558d6ba27405f966ee0.zip
CFI: Support function pointers for trait methods
Adds support for both CFI and KCFI for attaching concrete and abstract
types to functions. KCFI does this through generation of `ReifyShim` on
any function pointer that could go in a vtable, and checking the
`ReifyReason` when emitting the instance. CFI does this by attaching
both the concrete and abstract type to every instance.

TypeID codegen tests are switched to be anchored on the left rather than
the right in order to allow emission of additional type attachments.

Fixes #115953
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions