diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-07-27 23:16:46 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-07-27 23:16:46 -0500 |
| commit | 0f718f86616790884f7ebe62f1e02feed686f62f (patch) | |
| tree | 687b7d9284045cd99d9b2e5c500a1a536be839b1 | |
| parent | 1744d9dff4f372ed15dada6766a17b05c26e5f33 (diff) | |
| download | sloth-0f718f86616790884f7ebe62f1e02feed686f62f.tar.gz | |
formatting but fr this time
| -rw-r--r-- | sloth/src/codegen/mod.rs | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sloth/src/codegen/mod.rs b/sloth/src/codegen/mod.rs index 4a42e88..59f1ea6 100644 --- a/sloth/src/codegen/mod.rs +++ b/sloth/src/codegen/mod.rs @@ -914,23 +914,23 @@ impl<'ctx> Codegen<'ctx> { self.builder.build_return(None); } - fn INTRINSIC_vremove(&mut self, name: &str, typ: Type) { - // Setup function - let array_input = self.type_as_basic_type(Type::Array { - typ: Box::new(typ.clone()), - }); - // [Array, Index] - let inputs = &[array_input.into(), self.context.i32_type().into()]; - let func_type = self.context.void_type().fn_type(inputs, false); - self._setup(&format!("vremove{name}"), func_type); - let _func = self.current_func.unwrap(); - - // Types - let _element_type = self.type_as_basic_type(typ); - - // FIXME: Array cant shrink as of now - // TODO: vremove - } + // fn INTRINSIC_vremove(&mut self, name: &str, typ: Type) { + // // Setup function + // let array_input = self.type_as_basic_type(Type::Array { + // typ: Box::new(typ.clone()), + // }); + // // [Array, Index] + // let inputs = &[array_input.into(), self.context.i32_type().into()]; + // let func_type = self.context.void_type().fn_type(inputs, false); + // self._setup(&format!("vremove{name}"), func_type); + // let _func = self.current_func.unwrap(); + // + // // Types + // let _element_type = self.type_as_basic_type(typ); + // + // // FIXME: Array cant shrink as of now + // // TODO: vremove + // } fn INTRINSIC_vlen(&mut self) { // Setup function |
