1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/bindings/ocaml
Torok Edwin 2acdd67db2 Fix OCaml bindings crash, PR8847.
See http://caml.inria.fr/mantis/view.php?id=4166
If we call only external functions from a module, then its 'let _' bindings
don't get executed, which means that the exceptions don't get registered for use
in the C code.
This in turn causes llvm_raise to call raise_with_arg() with a NULL pointer and
cause a segmentation fault.

The workaround is to declare all 'external' functions as 'val' in these .mli
files.

Also added a separate testcase (the testcase must call only external functions
for the bug to occur).

llvm-svn: 122497
2010-12-23 15:49:26 +00:00
..
analysis remove dead makefile flags. 2009-06-24 05:28:55 +00:00
bitreader Fix OCaml bindings crash, PR8847. 2010-12-23 15:49:26 +00:00
bitwriter Add a LLVMWriteBitcodeToFD that exposes the raw_fd_ostream options. 2010-03-06 00:30:06 +00:00
executionengine Fix OCaml bindings crash, PR8847. 2010-12-23 15:49:26 +00:00
llvm Fix OCaml bindings crash, PR8847. 2010-12-23 15:49:26 +00:00
target remove dead makefile flags. 2009-06-24 05:28:55 +00:00
transforms Try to fix ocaml bindings. 2010-10-08 00:36:21 +00:00
Makefile C and Objective Caml bindings for the TargetData class. 2008-03-16 20:08:03 +00:00
Makefile.ocaml Add OCaml tutorial to the examples. 2010-03-08 19:32:27 +00:00