fixed: missing init of asm parsers
This commit is contained in:
parent
0c5fb4fd41
commit
4ac0ee79d1
|
@ -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) !=
|
||||
|
|
Loading…
Reference in New Issue