Returns the exit label of the current control stack frame. Note that this is similar to [`ControlStackFrame::label`], with the only difference that it returns `None` for `Loop` since its label doesn't represent an exit.
(&self)
| 624 | /// this is similar to [`ControlStackFrame::label`], with the only difference that it |
| 625 | /// returns `None` for `Loop` since its label doesn't represent an exit. |
| 626 | pub fn exit_label(&self) -> Option<&MachLabel> { |
| 627 | use ControlStackFrame::*; |
| 628 | |
| 629 | match self { |
| 630 | If { exit, .. } | Else { exit, .. } | Block { exit, .. } => Some(exit), |
| 631 | Loop { .. } => None, |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | /// Set the current control stack frame as a branch target. |
| 636 | pub fn set_as_target(&mut self) { |
no outgoing calls
no test coverage detected