summaryrefslogtreecommitdiffstats
path: root/llvm/bindings/ocaml/bitreader/bitreader_ocaml.c
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
* 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] 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-291-29/+10
| | | | | | | | | | 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-281-6/+6
| | | | llvm-svn: 220766
* OCaml bindings: formattingSylvestre Ledru2013-11-011-2/+2
| | | | | | | | 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 module providers from ocaml.Erick Tryzelaar2010-03-021-5/+4
| | | | 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-191-6/+8
| | | | llvm-svn: 79410
* 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-291-2/+2
| | | | llvm-svn: 45425
* 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-191-19/+34
| | | | | | 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-111-0/+46
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