From 0f718f86616790884f7ebe62f1e02feed686f62f Mon Sep 17 00:00:00 2001 From: nic-gaffney Date: Thu, 27 Jul 2023 23:16:46 -0500 Subject: [PATCH] formatting but fr this time --- sloth/src/codegen/mod.rs | 34 +++++++++++++++++----------------- 1 file 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