aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sloth/src/codegen/mod.rs34
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