#include "caml/alloc.h"
#include "caml/memory.h"
+// TODO: Figure out how to call these only for targets which support them.
+// LLVMInitialize ## target ## AsmPrinter();
+// LLVMInitialize ## target ## AsmParser();
+// LLVMInitialize ## target ## Disassembler();
+
#define INITIALIZER1(target) \
CAMLprim value llvm_initialize_ ## target(value Unit) { \
LLVMInitialize ## target ## TargetInfo(); \
LLVMInitialize ## target ## Target(); \
LLVMInitialize ## target ## TargetMC(); \
- // TODO: Figure out how to call these only for targets \
- // which support them. \
- // LLVMInitialize ## target ## AsmPrinter(); \
- // LLVMInitialize ## target ## AsmParser(); \
- // LLVMInitialize ## target ## Disassembler(); \
return Val_unit; \
}