Skip to content

Commit e2f90f7

Browse files
committed
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.
1 parent d27ec6c commit e2f90f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn clif_sig_from_fn_abi<'tcx>(
2222
fn_abi: &FnAbi<'tcx, Ty<'tcx>>,
2323
) -> Signature {
2424
let call_conv = match fn_abi.conv {
25-
Conv::Rust | Conv::C => default_call_conv,
25+
Conv::Rust | Conv::C | Conv::RustCold => default_call_conv,
2626
Conv::X86_64SysV => CallConv::SystemV,
2727
Conv::X86_64Win64 => CallConv::WindowsFastcall,
2828
Conv::ArmAapcs

0 commit comments

Comments
 (0)