From 4ac0ee79d1a66c68e50753882a176416c5912f58 Mon Sep 17 00:00:00 2001 From: servostar Date: Tue, 4 Jun 2024 15:18:22 +0200 Subject: [PATCH] fixed: missing init of asm parsers --- src/llvm/parser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/llvm/parser.c b/src/llvm/parser.c index 3a9bfa9..dbe914b 100644 --- a/src/llvm/parser.c +++ b/src/llvm/parser.c @@ -106,6 +106,9 @@ BackendError export_object(LLVMBackendCompileUnit* unit, const Target* target, LLVMInitializeAllTargets(); LLVMInitializeAllTargetInfos(); LLVMInitializeAllTargetMCs(); + // NOTE: for code generation (assmebly or binary) we need the following: + LLVMInitializeAllAsmParsers(); + LLVMInitializeAllAsmPrinters(); DEBUG("creating target..."); if (LLVMGetTargetFromTriple(target->triple.str, &llvm_target, &error) !=