1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/bindings/ocaml/llvm
Timotej Kapus b99ed0163e [OCaml] Handle nullptr in Llvm.global_initializer
LLVMGetInitializer returns nullptr in case there is no initializer.
There is not much that can be done with nullptr in OCaml, not even
test if it is null. Also, there does not seem to be a C or OCaml API
to test if there is an initializer. So this diff changes
Llvm.global_initializer to return an option.

Reviewed By: whitequark

Differential Revision: https://reviews.llvm.org/D65195
2021-03-17 13:39:35 +00:00
..
CMakeLists.txt [OCaml] DebugInfo support for OCaml bindings 2021-03-17 10:15:56 +05:30
llvm_ocaml.c [OCaml] Handle nullptr in Llvm.global_initializer 2021-03-17 13:39:35 +00:00
llvm_ocaml.h [OCaml] DebugInfo support for OCaml bindings 2021-03-17 10:15:56 +05:30
llvm.ml [OCaml] Handle nullptr in Llvm.global_initializer 2021-03-17 13:39:35 +00:00
llvm.mli [OCaml] Handle nullptr in Llvm.global_initializer 2021-03-17 13:39:35 +00:00
META.llvm.in [OCaml] DebugInfo support for OCaml bindings 2021-03-17 10:15:56 +05:30