]> git.lizzy.rs Git - rust.git/commit
Auto merge of #83044 - kubo39:set-llvm-code-model, r=nikic
authorbors <bors@rust-lang.org>
Sun, 14 Mar 2021 11:46:57 +0000 (11:46 +0000)
committerbors <bors@rust-lang.org>
Sun, 14 Mar 2021 11:46:57 +0000 (11:46 +0000)
commit84c08f82b46986fcd5cbd1a637582bd1325fa970
tree6678d7e243f4636cb97dda900790c6cdc687d091
parentf293f70dd848ae2371b6fad2eb9f4081e920da88
parent71418384d7d37b37eef250291ea8015667a81f17
Auto merge of #83044 - kubo39:set-llvm-code-model, r=nikic

Add support for storing code model to LLVM module IR

This patch avoids undefined behavior by linking different object files.
Also this would it could be propagated properly to LTO.

See https://reviews.llvm.org/D52322 and https://reviews.llvm.org/D52323.

This patch is based on https://github.com/rust-lang/rust/pull/74002
compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp