diff options
| author | bors <bors@rust-lang.org> | 2022-06-07 08:12:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-06-07 08:12:45 +0000 |
| commit | 91cacb3faf987805675e39aca41859ec1fcabef3 (patch) | |
| tree | 8abbf8d38127f75c7a19f5564b0a6db0b65e29a1 /compiler/rustc_codegen_llvm/src | |
| parent | bb55bd449e65e611da928560d948982d73e50027 (diff) | |
| parent | be4e0898ccf4f6514a94c3b89ab48bd3a8268ce3 (diff) | |
| download | rust-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_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, |
