Skip to main content

orco/codegen/
impls.rs

1use crate::codegen;
2
3/// Use this when a feature is not supported. Default implementation
4pub struct Unsupported;
5
6impl codegen::ACFCodegen for Unsupported {
7    fn label(&mut self, _: codegen::Label) {
8        unimplemented!("arbitrary control flow is not supported by this backend");
9    }
10
11    fn jump(&mut self, _: codegen::Label) {
12        unimplemented!("arbitrary control flow is not supported by this backend");
13    }
14
15    fn cjump(&mut self, _: codegen::Operand, _: u128, _: bool, _: codegen::Label) {
16        unimplemented!("arbitrary control flow is not supported by this backend");
17    }
18}