[OCaml][Test] Fix and enable debuginfo.ml test
authorVaivaswatha Nagaraj <vaivaswatha@zilliqa.com>
Sun, 28 Mar 2021 00:55:39 +0000 (06:25 +0530)
committerVaivaswatha Nagaraj <vaivaswatha@zilliqa.com>
Sun, 28 Mar 2021 00:55:39 +0000 (06:25 +0530)
commit11f59c5457d5215071ccd1c07bcdef3cb07d520c
tree0cefd1b3c5119e890f865e9a2dd4f7ae77612d5e
parentdcaa0293c1068cf0b06c4e4304d3290ca3e7d5e3
[OCaml][Test] Fix and enable debuginfo.ml test

`get_or_create_type_array` was used on a non-type MDNode.
Add interface for `get_or_create_array` and use that instead.

Differential Revision: https://reviews.llvm.org/D99450
llvm/bindings/ocaml/debuginfo/debuginfo_ocaml.c
llvm/bindings/ocaml/debuginfo/llvm_debuginfo.ml
llvm/bindings/ocaml/debuginfo/llvm_debuginfo.mli
llvm/test/Bindings/OCaml/debuginfo.ml [moved from llvm/test/Bindings/OCaml/debuginfo.ml.disable with 99% similarity]