Skip to content

Commit

Permalink
[OCaml] DebugInfo support for OCaml bindings
Browse files Browse the repository at this point in the history
Many (but not all) DebugInfo functions are now added to the
OCaml bindings, and rest can be safely added incrementally.

Differential Revision: https://reviews.llvm.org/D90831
  • Loading branch information
vaivaswatha committed Mar 17, 2021
1 parent a6074b0 commit 506df1b
Show file tree
Hide file tree
Showing 13 changed files with 2,185 additions and 3 deletions.
Empty file.
1 change: 1 addition & 0 deletions llvm/bindings/ocaml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ add_subdirectory(analysis)
add_subdirectory(backends)
add_subdirectory(bitreader)
add_subdirectory(bitwriter)
add_subdirectory(debuginfo)
add_subdirectory(irreader)
add_subdirectory(linker)
add_subdirectory(target)
Expand Down
3 changes: 2 additions & 1 deletion llvm/bindings/ocaml/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ The bindings can also be built out-of-tree, i.e. targeting a preinstalled
LLVM. To do this, configure the LLVM build tree as follows:

$ cmake -DLLVM_OCAML_OUT_OF_TREE=TRUE \
-DCMAKE_INSTALL_PREFIX=[OCaml install prefix] \
-DCMAKE_INSTALL_PREFIX=[Preinstalled LLVM path] \
-DLLVM_OCAML_INSTALL_PATH=[OCaml install prefix] \
[... any other options]

then build and install it as:
Expand Down
6 changes: 6 additions & 0 deletions llvm/bindings/ocaml/debuginfo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
add_ocaml_library(llvm_debuginfo
OCAML llvm_debuginfo
OCAMLDEP llvm
C debuginfo_ocaml
CFLAGS "-I${CMAKE_CURRENT_SOURCE_DIR}/../llvm"
LLVM Core)
Loading

0 comments on commit 506df1b

Please sign in to comment.