about summary refs log tree commit diff
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2022-05-29 00:25:14 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2022-05-30 00:19:23 -0700
commite2f90f7f74d805cd12d879feb3d3796acf088ae0 (patch)
treed3c1d710cc0f4f30b54489a002bf454aca3bff27
parentd27ec6c86d0c3464b5da71c86f0db53ff59242c0 (diff)
downloadrust-e2f90f7f74d805cd12d879feb3d3796acf088ae0.tar.gz
rust-e2f90f7f74d805cd12d879feb3d3796acf088ae0.zip
Add support for emitting functions with `coldcc` in LLVM
The eventual goal is to try using this for things like the internal panicking stuff, to see whether it helps.
-rw-r--r--src/abi/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/abi/mod.rs b/src/abi/mod.rs
index decb7841990..59a7316c1c0 100644
--- a/src/abi/mod.rs
+++ b/src/abi/mod.rs
@@ -22,7 +22,7 @@ fn clif_sig_from_fn_abi<'tcx>(
     fn_abi: &FnAbi<'tcx, Ty<'tcx>>,
 ) -> Signature {
     let call_conv = match fn_abi.conv {
-        Conv::Rust | Conv::C => default_call_conv,
+        Conv::Rust | Conv::C | Conv::RustCold => default_call_conv,
         Conv::X86_64SysV => CallConv::SystemV,
         Conv::X86_64Win64 => CallConv::WindowsFastcall,
         Conv::ArmAapcs