summaryrefslogtreecommitdiffstats
path: root/llvm/bindings/ocaml/bitreader/bitreader_ocaml.c
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+4
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [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