diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-11-09 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-11-14 08:23:58 +0100 |
| commit | 78da5776509f4e646a664de3ee7041f8008d5931 (patch) | |
| tree | 003963619ebb79fe1f0eb86e2a4a601e8fedc48b /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 287ae4db75228ef8260a112bcc65245f05e18340 (diff) | |
| download | rust-78da5776509f4e646a664de3ee7041f8008d5931.tar.gz rust-78da5776509f4e646a664de3ee7041f8008d5931.zip | |
Custom MIR: Support cleanup blocks
Cleanup blocks are declared with `bb (cleanup) = { ... }`.
`Call` and `Drop` terminators take an additional argument describing the
unwind action, which is one of the following:
* `UnwindContinue()`
* `UnwindUnreachable()`
* `UnwindTerminate(reason)`, where reason is `ReasonAbi` or `ReasonInCleanup`
* `UnwindCleanup(block)`
Also support unwind resume and unwind terminate terminators:
* `UnwindResume()`
* `UnwindTerminate(reason)`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
