From b5b90fb2b7dc534d50e807841d60f6f689fa4666 Mon Sep 17 00:00:00 2001 From: Brian Carroll Date: Wed, 17 Nov 2021 16:45:52 +0000 Subject: [PATCH] Delete unused file --- .../test_gen/src/helpers/wasm_test_platform.c | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 compiler/test_gen/src/helpers/wasm_test_platform.c diff --git a/compiler/test_gen/src/helpers/wasm_test_platform.c b/compiler/test_gen/src/helpers/wasm_test_platform.c deleted file mode 100644 index a607d38a8c..0000000000 --- a/compiler/test_gen/src/helpers/wasm_test_platform.c +++ /dev/null @@ -1,23 +0,0 @@ -#include -extern void* test_wrapper(); - -void* roc_alloc(size_t size, unsigned int alignment) { - return malloc(size); -} - -void* roc_realloc(void* ptr, size_t old_size, size_t new_size, unsigned int alignment) { - return realloc(ptr, new_size); -} - -void roc_dealloc(void* ptr, unsigned int alignment) { - free(ptr); -} - -// Having a main function seems to make it easier to convince tools -// to include everything in the output binary. -// Using C as the source language makes it easier to convince them -// to include libc for wasm target, not host. -// The returned int is the memory address of the test result -int main(void) { - return test_wrapper(); -}