[OCaml] Add (get/set)_module_identifer functions
authorVaivaswatha Nagaraj <vaivaswatha@zilliqa.com>
Fri, 19 Mar 2021 14:05:13 +0000 (19:35 +0530)
committerVaivaswatha Nagaraj <vaivaswatha@zilliqa.com>
Sat, 20 Mar 2021 15:11:51 +0000 (20:41 +0530)
commitf860187ea6e9b30e1ecf74784f0af0e0c9ecc01c
treedf72bc130903b6107a8558adf8fd691558a9f42d
parent5cbe2279f723f1cca1a542d95e7d9760e4f52240
[OCaml] Add (get/set)_module_identifer functions

Also:

- Fix a bug that crept in when fixing a buildbot failure in
https://github.com/llvm/llvm-project/commit/f7be9db6220cb39f0eaa12d2af3abedf0d86c303
- Use mlsize_t for cstr_to_string as that is what
caml_alloc_string specifies.

Differential Revision: https://reviews.llvm.org/D98851
llvm/bindings/ocaml/llvm/llvm.ml
llvm/bindings/ocaml/llvm/llvm.mli
llvm/bindings/ocaml/llvm/llvm_ocaml.c
llvm/bindings/ocaml/llvm/llvm_ocaml.h
llvm/test/Bindings/OCaml/core.ml