diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-05-29 00:25:14 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-05-30 00:19:23 -0700 |
| commit | e90be842fb9129aa27e5b6412f245ca39999f9f1 (patch) | |
| tree | 96cc6b49f01fae44002f56140f28014cceaa07e4 /compiler/rustc_codegen_llvm/src | |
| parent | 0acc4a35853215a6f9388ab61455ced309711003 (diff) | |
| download | rust-e90be842fb9129aa27e5b6412f245ca39999f9f1.tar.gz rust-e90be842fb9129aa27e5b6412f245ca39999f9f1.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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/abi.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/abi.rs b/compiler/rustc_codegen_llvm/src/abi.rs index b9baa87bac7..cc8b3a1a4e4 100644 --- a/compiler/rustc_codegen_llvm/src/abi.rs +++ b/compiler/rustc_codegen_llvm/src/abi.rs @@ -393,6 +393,7 @@ impl<'ll, 'tcx> FnAbiLlvmExt<'ll, 'tcx> for FnAbi<'tcx, Ty<'tcx>> { fn llvm_cconv(&self) -> llvm::CallConv { match self.conv { Conv::C | Conv::Rust | Conv::CCmseNonSecureCall => llvm::CCallConv, + Conv::RustCold => llvm::ColdCallConv, Conv::AmdGpuKernel => llvm::AmdGpuKernel, Conv::AvrInterrupt => llvm::AvrInterrupt, Conv::AvrNonBlockingInterrupt => llvm::AvrNonBlockingInterrupt, |
