summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-06-07 08:12:45 +0000
committerbors <bors@rust-lang.org>2022-06-07 08:12:45 +0000
commit91cacb3faf987805675e39aca41859ec1fcabef3 (patch)
tree8abbf8d38127f75c7a19f5564b0a6db0b65e29a1 /compiler/rustc_codegen_cranelift
parentbb55bd449e65e611da928560d948982d73e50027 (diff)
parentbe4e0898ccf4f6514a94c3b89ab48bd3a8268ce3 (diff)
downloadrust-91cacb3faf987805675e39aca41859ec1fcabef3.tar.gz
rust-91cacb3faf987805675e39aca41859ec1fcabef3.zip
Auto merge of #97512 - scottmcm:add-coldcc, r=nagisa,lcnr
Add support for emitting functions with `coldcc` to LLVM

The eventual goal is to try using this for things like the internal panicking stuff, to see whether it helps.
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
-rw-r--r--compiler/rustc_codegen_cranelift/src/abi/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/abi/mod.rs b/compiler/rustc_codegen_cranelift/src/abi/mod.rs
index decb7841990..ffa5d747b11 100644
--- a/compiler/rustc_codegen_cranelift/src/abi/mod.rs
+++ b/compiler/rustc_codegen_cranelift/src/abi/mod.rs
@@ -23,6 +23,7 @@ fn clif_sig_from_fn_abi<'tcx>(
 ) -> Signature {
     let call_conv = match fn_abi.conv {
         Conv::Rust | Conv::C => default_call_conv,
+        Conv::RustCold => CallConv::Cold,
         Conv::X86_64SysV => CallConv::SystemV,
         Conv::X86_64Win64 => CallConv::WindowsFastcall,
         Conv::ArmAapcs