Use -mergefunc-use-aliases for any LLVM >= 8

This commit is contained in:
Josh Stone 2019-04-18 15:01:10 -07:00
parent bf843eb9c2
commit eed3619f8d

View file

@ -61,7 +61,7 @@ unsafe fn configure_llvm(sess: &Session) {
if sess.opts.debugging_opts.disable_instrumentation_preinliner {
add("-disable-preinline");
}
if llvm::LLVMRustIsRustLLVM() {
if get_major_version() >= 8 {
match sess.opts.debugging_opts.merge_functions
.unwrap_or(sess.target.target.options.merge_functions) {
MergeFunctions::Disabled |