[PATCH] D35899: [OCaml] Fix undefined reference to LLVMDumpType() with NDEBUG

whitequark via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 10:11:38 PDT 2017


whitequark added inline comments.


================
Comment at: bindings/ocaml/llvm/llvm_ocaml.c:344
+  caml_raise_with_arg(*caml_named_value("Llvm.FeatureDisabled"),
+      caml_copy_string(Message));
+#endif
----------------
It's defined as
```
CAMLextern value caml_copy_string (char const *);
```
you can just use `caml_copy_string("dump")`.


https://reviews.llvm.org/D35899





More information about the llvm-commits mailing list