about summary refs log tree commit diff
path: root/src/bootstrap/codegen.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-06-04 22:40:18 +0200
committerBaitinq <[email protected]>2025-06-04 22:40:18 +0200
commit518be1df039a4ff44d048929ee1322aebf806ad8 (patch)
tree0cac5ca2df6ff844dfb9a4ca555d2d716dd1e377 /src/bootstrap/codegen.src
parentBootstrap: Codegen: Fix memory leaks (diff)
downloadinterpreter-518be1df039a4ff44d048929ee1322aebf806ad8.tar.gz
interpreter-518be1df039a4ff44d048929ee1322aebf806ad8.tar.bz2
interpreter-518be1df039a4ff44d048929ee1322aebf806ad8.zip
Bootstrap: Codegen: Initialize all targets
Diffstat (limited to '')
-rw-r--r--src/bootstrap/codegen.src10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bootstrap/codegen.src b/src/bootstrap/codegen.src
index db18380..3a76c16 100644
--- a/src/bootstrap/codegen.src
+++ b/src/bootstrap/codegen.src
@@ -8,11 +8,11 @@ let codegen = struct {
 };
 
 let codegen_init = (alloc: *arena) => *codegen {
-	LLVMInitializeX86TargetInfo();
-	LLVMInitializeX86TargetMC();
-	LLVMInitializeX86Target();
-	LLVMInitializeX86AsmPrinter();
-	LLVMInitializeX86AsmParser();
+	LLVMInitializeAllTargetInfos();
+	LLVMInitializeAllTargetMCs();
+	LLVMInitializeAllTargets();
+	LLVMInitializeAllAsmPrinters();
+	LLVMInitializeAllAsmParsers();
 
 	let module = LLVMModuleCreateWithName("module");
         let context = LLVMGetGlobalContext();