| 39 | } |
| 40 | |
| 41 | SegmentMode ToSegmentMode(uint8_t flags) { |
| 42 | if ((flags & SegDeclared) == SegDeclared) { |
| 43 | return SegmentMode::Declared; |
| 44 | } else if ((flags & SegPassive) == SegPassive) { |
| 45 | return SegmentMode::Passive; |
| 46 | } else { |
| 47 | return SegmentMode::Active; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | // This is only used to distinguish try blocks and all other blocks, |
| 52 | // so there are only two kinds. |
no outgoing calls
no test coverage detected