summaryrefslogtreecommitdiffstats
path: root/llvm/bindings/ocaml/bitreader
Commit message (Collapse)AuthorAgeFilesLines
* [OCaml] Use LLVMCreateMessage with constant strings when calling llvm_raiseJeroen Ketema2016-04-011-2/+3
| | | | | | | | | | | The llvm_string_of_message function, called by llvm_raise, calls LLVMDisposeMessage, which expects the message to be dynamically allocated; it fails freeing the message otherwise. So always dynamically allocate with LLVMCreateMessage. Differential Revision: http://reviews.llvm.org/D18675 llvm-svn: 265116
* Remove autoconf supportChris Bieneman2016-01-261-19/+0
| | | | | | | | | | | | | | | | Summary: This patch is provided in preparation for removing autoconf on 1/26. The proposal to remove autoconf on 1/26 was discussed on the llvm-dev thread here: http://lists.llvm.org/pipermail/llvm-dev/2016-January/093875.html "I felt a great disturbance in the [build system], as if millions of [makefiles] suddenly cried out in terror and were suddenly silenced. I fear something [amazing] has happened." - Obi Wan Kenobi Reviewers: chandlerc, grosbach, bob.wilson, tstellarAMD, echristo, whitequark Subscribers: chfast, simoncook, emaste, jholewinski, tberghammer, jfb, danalbert, srhines, arsenm, dschuff, jyknight, dsanders, joker.eph, llvm-commits Differential Revision: http://reviews.llvm.org/D16471 llvm-svn: 258861
* Deprecate a few C APIs.Rafael Espindola2015-12-181-6/+4
| | | | | | | | | | | | | This deprecates: * LLVMParseBitcode * LLVMParseBitcodeInContext * LLVMGetBitcodeModuleInContext * LLVMGetBitcodeModule They are replaced with the functions with a 2 suffix which do not record a diagnostic. llvm-svn: 256065
* [OCaml] [cmake] Add CMake buildsystem for OCaml.Peter Zotov2014-12-011-0/+5
| | | | | | Closes PR15325. llvm-svn: 223071
* [OCaml] De-duplicate llvm_raise and llvm_string_of_message.Peter Zotov2014-10-301-12/+1
| | | | llvm-svn: 220898
* [OCaml] Drop support for 3.12.1 and earlier.Peter Zotov2014-10-293-40/+19
| | | | | | | | | | In practice this means: * Always using -g flag. * Embedding -cclib -lstdc++ into the corresponding cma/cmxa file. This also moves -lstdc++ in a single place. * Using caml_named_value instead of a homegrown mechanism. llvm-svn: 220843
* [OCaml] Fix whitespace.Peter Zotov2014-10-282-10/+10
| | | | llvm-svn: 220766
* OCaml bindings: formattingSylvestre Ledru2013-11-013-5/+5
| | | | | | | | This commit only changes comments and documentation in OCaml bindings. The official name of the language is OCaml, and the usage is now consistent. Patch by Peter Zotov llvm-svn: 193836
* Remove tabs.Bill Wendling2012-07-191-3/+2
| | | | llvm-svn: 160482
* Fix OCaml bindings crash, PR8847.Torok Edwin2010-12-231-4/+4
| | | | | | | | | | | | | | | | | 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
* Remove module providers from ocaml.Erick Tryzelaar2010-03-023-16/+12
| | | | llvm-svn: 97609
* Fix the ocaml bindings for the bitcode reader.Jeffrey Yasskin2010-02-271-1/+1
| | | | | | llvm_get_module_provider() was returning a value of the wrong type. llvm-svn: 97290
* Allow passing around LLVMContext in ocaml.Erick Tryzelaar2009-08-193-18/+24
| | | | llvm-svn: 79410
* remove dead makefile flags.Chris Lattner2009-06-241-1/+0
| | | | llvm-svn: 74064
* This patch cleans up the OCaml bindings so that they format nicely withGordon Henriksen2008-03-091-7/+6
| | | | | | | | ocamldoc. It does not yet hook into the build system, though. Patch by Erick Tryzelaar! llvm-svn: 48095
* Trying r45451 again, but this time warning-free on 3.10.x.Gordon Henriksen2007-12-301-0/+3
| | | | llvm-svn: 45452
* Remove some lines that are nonportable to Ocaml 3.06.Gordon Henriksen2007-12-301-1/+0
| | | | llvm-svn: 45451
* remove attribution from a variety of miscellaneous files.Chris Lattner2007-12-293-6/+6
| | | | llvm-svn: 45425
* remove attributions from the rest of the llvm makefiles.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45416
* C and Ocaml bindings for ExecutionEngine (i.e., the JIT compiler).Gordon Henriksen2007-12-231-3/+12
| | | | llvm-svn: 45335
* Adding bindings for memory buffers and module providers. SwitchingGordon Henriksen2007-12-193-32/+54
| | | | | | to exceptions rather than variants for error handling in Ocaml. llvm-svn: 45226
* Adding Ocaml bindings for the bitreader as requested by SarahGordon Henriksen2007-12-114-0/+108
Thompson. Usage should be something like this: open Llvm open Llvm_bitreader match read_bitcode_file fn with | Bitreader_failure msg -> prerr_endline msg | Bitreader_success m -> ...; dispose_module m Compile with: ocamlc llvm.cma llvm_bitreader.cma ocamlopt llvm.cmxa llvm_bitreader.cmxa llvm-svn: 44824
OpenPOWER on IntegriCloud