llvm-project
15e3b49c - [llvm] Allow Rust personality name to contain arbitrary prefix (#166095)

Commit
2 days ago
[llvm] Allow Rust personality name to contain arbitrary prefix (#166095) LLVM needs to figure out the type of EH personality for various reasons. To do this, it currently matches against a hardcoded list of names. In Rust, we would like to mangle our personality function to better support linking multiple Rust standard libraries via staticlib. We have currently mangled all symbols except the personality, which remains unmangled because of this LLVM hardcoding. Instead, this now does a suffix match of the personality name, which will work with the mangling scheme used for these internal symbols (e.g. `_RNvCseCSg29WUqSe_7___rustc12___rust_alloc`). Companion Rust PR: https://github.com/rust-lang/rust/pull/148413
Author
Parents
Loading