diff options
author | Peter Zotov <whitequark@whitequark.org> | 2013-11-15 02:51:27 +0000 |
---|---|---|
committer | Peter Zotov <whitequark@whitequark.org> | 2013-11-15 02:51:27 +0000 |
commit | 68f4dae1c078df09c9b19a0bda9bc8b8d0aae9be (patch) | |
tree | 1033c3ce865a277b2c469eff5389f09eec53a020 /bindings/ocaml/backends/backend_ocaml.c | |
parent | e016a163e97d29a4c343189e678633066a3365ab (diff) | |
download | external_llvm-68f4dae1c078df09c9b19a0bda9bc8b8d0aae9be.zip external_llvm-68f4dae1c078df09c9b19a0bda9bc8b8d0aae9be.tar.gz external_llvm-68f4dae1c078df09c9b19a0bda9bc8b8d0aae9be.tar.bz2 |
[OCaml] Fix building of stub libraries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml/backends/backend_ocaml.c')
-rw-r--r-- | bindings/ocaml/backends/backend_ocaml.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bindings/ocaml/backends/backend_ocaml.c b/bindings/ocaml/backends/backend_ocaml.c index fd6d06d..2d4ba85 100644 --- a/bindings/ocaml/backends/backend_ocaml.c +++ b/bindings/ocaml/backends/backend_ocaml.c @@ -19,16 +19,16 @@ #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; \ } |