[all-commits] [llvm/llvm-project] c244cd: [OCaml][DebugInfo] Add tests for debug info API

Vaivaswatha N via All-commits all-commits at lists.llvm.org
Fri Mar 26 09:56:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c244cd72172ca8941f9f67fc183ade8afcd61c17
      https://github.com/llvm/llvm-project/commit/c244cd72172ca8941f9f67fc183ade8afcd61c17
  Author: Vaivaswatha Nagaraj <vaivaswatha at zilliqa.com>
  Date:   2021-03-26 (Fri, 26 Mar 2021)

  Changed paths:
    M llvm/bindings/ocaml/debuginfo/debuginfo_ocaml.c
    M llvm/bindings/ocaml/debuginfo/llvm_debuginfo.ml
    M llvm/bindings/ocaml/debuginfo/llvm_debuginfo.mli
    A llvm/test/Bindings/OCaml/.ocamlformat
    A llvm/test/Bindings/OCaml/Utils/Testsuite.ml
    A llvm/test/Bindings/OCaml/Utils/lit.local.cfg
    M llvm/test/Bindings/OCaml/core.ml
    A llvm/test/Bindings/OCaml/debuginfo.ml

  Log Message:
  -----------
  [OCaml][DebugInfo] Add tests for debug info API

In the process of adding the tests, several bugs were
found in the implementation and interface of the API
and they were fixed.

Some utilities from the core tests (core.ml) were moved
into a separate file for reuse.

The following new functions have been added:
`dibuild_create_global_variable_expression`,
`dibuild_create_constant_value_expression` and
`llmetadata_null`. The third one already existed but
is now exposed publicly.

Differential Revision: https://reviews.llvm.org/D99403




More information about the All-commits mailing list