From 29d02156950252744ba13fbd0aece03c85cb11c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Fri, 11 Nov 2022 19:11:48 +0100 Subject: [PATCH] waforthc: Remove reproducer --- src/waforthc/Makefile | 3 --- src/waforthc/reproducer.cpp | 33 --------------------------------- 2 files changed, 36 deletions(-) delete mode 100644 src/waforthc/reproducer.cpp diff --git a/src/waforthc/Makefile b/src/waforthc/Makefile index fe233f2..9411b6b 100644 --- a/src/waforthc/Makefile +++ b/src/waforthc/Makefile @@ -30,9 +30,6 @@ all: waforthc waforthc: $(OBJECTS) $(CXX) -o $@ $^ $(LIBS) -reproducer: reproducer.o - $(CXX) -o $@ $^ $(LIBS) - waforthc.o: waforth_core.h waforth_rt.h %.o: %.cpp diff --git a/src/waforthc/reproducer.cpp b/src/waforthc/reproducer.cpp deleted file mode 100644 index 2603cf8..0000000 --- a/src/waforthc/reproducer.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "waforth_core.h" - -int main(int argc, char *argv[]) { - wabt::Errors errors; - wabt::Features features; - wabt::Module mod; - auto result = ReadBinaryIr("in.wasm", waforth_core, sizeof(waforth_core), wabt::ReadBinaryOptions(features, NULL, true, true, true), &errors, &mod); - assert(Succeeded(result)); - result = ValidateModule(&mod, &errors, wabt::ValidateOptions(features)); - result |= GenerateNames(&mod); - assert(Succeeded(result)); - result = ApplyNames(&mod); - assert(Succeeded(result)); - - wabt::FileStream out("out.wasm"); - result = wabt::WriteBinaryModule(&out, &mod, wabt::WriteBinaryOptions(features, false, false, true)); - assert(Succeeded(result)); - - return 0; -}