From ad7355c94cc0c0876769ee9b68bc59c2a99f0809 Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 27 May 2024 01:24:37 +0200 Subject: [PATCH] removed llvm tests --- src/llvm/parser.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/llvm/parser.c b/src/llvm/parser.c index b115650..e143d0c 100644 --- a/src/llvm/parser.c +++ b/src/llvm/parser.c @@ -27,6 +27,11 @@ BackendError parse_module(const Module* module, void**) { err = impl_global_variables(unit, global_scope, module->variables); + char* err_msg = NULL; + if (LLVMPrintModuleToFile(unit->module, "out.s", &err_msg)) { + err = new_backend_impl_error(Implementation, NULL, err_msg); + } + delete_global_scope(global_scope); LLVMDisposeModule(unit->module);